office politics
It's all just 1s and 0s
- Messages
- 6,555
- Location
- in the lab
i got this code to check if a user set only one of three values. With this code as is i get Line:18 Col:0 Expected 'End' Syntax Error:. I think its telling me to change my first else to a end if. when i change all my else's to end if's then i get the following error Line:18 Col:4 Expected 'Function' Syntax Error:.
Code:
i=0
if SEND_TO = NC then
i=i+1
end if
if UW_USERID = NC then
i=i+1
end if
if GOTO_AUTH = NC then
i=i+1
end if
if i = 0 then GETTRUEFALSE = FALSE
else
if i < 2 then GETTRUEFALSE = TRUE
else
if i = 3 then GETTRUEFALSE = FALSE
end if