Posted 26 April 2012 - 01:39 PM
for my program i have the default value of my variable set to 'false'
but in my code i want it to be set to 'true' if a certain condition is meet
eg. if the correct username is enter
set USERCORRECT to true
end
that i basicly what i what the code to do but i dont know what to really right to do that
at the moment i have this
if inputUser == user then
print(" Username correct ")
setUsercorrect = true
end
will this work
if not what shoudl i right instead to make it work
Thanks.
but in my code i want it to be set to 'true' if a certain condition is meet
eg. if the correct username is enter
set USERCORRECT to true
end
that i basicly what i what the code to do but i dont know what to really right to do that
at the moment i have this
if inputUser == user then
print(" Username correct ")
setUsercorrect = true
end
will this work
if not what shoudl i right instead to make it work
Thanks.