What I need to do to make If (A= B) worth?
Is it me or is it Basic?

Command If
Started by
Colombia
, Jun 01 2006 05:29 PM
3 replies to this topic
#1
Posted 01 June 2006 - 05:29 PM
#2
Posted 02 June 2006 - 07:07 AM
Basic:
Lua:
If A=B Then ... IfEnd
Lua:
if A==B then ... end

#3
Posted 02 June 2006 - 08:40 PM
Basic:
If A=B Then ... IfEnd
Lua:if A==B then ... end
I'm sorry but i know the estructure of IF
My question was why Basic can't compare letters.
When I put
/////////////////////
If A=B
Then
.......
Else
.......
IfEnd
/////////////////////
The error message is "UNDEFINED RESULT IN CONDITION JUDGMENT"
#4
Posted 03 June 2006 - 12:17 PM
My question was why Basic can't compare letters.
Ahhhh, ok. So, you have to write this:
StrCmp A,B,C If C=0 Then ...(A=B) Else ...(A<>B) End
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users