Question about " if "
Posted: Fri Nov 30, 2012 9:41 am
Hi guys,
can somebody please give me a hint what could be wrong in this short code ?
if the field "username" is item 3 of group "dguser" in stack "usergroup"
then
if the field "password" is item 3 of group "dguser" in stack "usergroup"
then
close this stack
go to stack "entry"
end if
end if
LiveCode always says error button "login": compilation error at line 3 (if: missing 'then') near "in", char 48
I don't get it.. there is a "then". I tried to write the whole code once more or to restart LiveCode or restart my computer.
Nothing.. always the same error message. I really hope that someone can help me with this.
best regards
Nibor
can somebody please give me a hint what could be wrong in this short code ?
if the field "username" is item 3 of group "dguser" in stack "usergroup"
then
if the field "password" is item 3 of group "dguser" in stack "usergroup"
then
close this stack
go to stack "entry"
end if
end if
LiveCode always says error button "login": compilation error at line 3 (if: missing 'then') near "in", char 48
I don't get it.. there is a "then". I tried to write the whole code once more or to restart LiveCode or restart my computer.
Nothing.. always the same error message. I really hope that someone can help me with this.
best regards
Nibor