Hello to everyone,

i don't know how to create a simple "if else statement" like this

if username=user and password=pass then
msg("Access Granted")
else
msg("Acess Denied")
end if

Is there anyone who can help me? please... thx

You have to write that yourself. If you don't want to, than stick to a higher language.

Write a procedure that compares two strings. You need a loop that compares each byte in the strings. If all values are identical, then you can set the equal-flag, if not not you clear it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.