hey im trying to do a script that checks for 2 difrent keywords
example "1" "2" I want to be able to
detect if $myvar != "1" || $myvar != "2"
but how do I do that without each running into each other?
Eliminator wrote:hey im trying to do a script that checks for 2 difrent keywords
example "1" "2" I want to be able to
detect if $myvar != "1" || $myvar != "2"
but how do I do that without each running into each other?
Mike.
Looks like you have it figured out already... I'm not sure what you are asking....
that's not necessary in his case, no need for the ()
it might be needed in cases when && and || are combined in the same if phrase.
example :
if {($first != "1") && ($second != "2" || $second != "3")} {...}
this means if something and anotherthing ....
another thing will be something or something. (if you know what I mean)
The && means "and" and the || means "or".. also, for bold use \002 as TeDDyBeeR sugested.
So the "if {($first != "1") && ($second != "2" || $second != "3")} {...}" should means: "If $first is not equal with 1 and $second is not equal with 2 or 3 do something.."
Once the game is over, the king and the pawn go back in the same box.
Oh, and bwt, the use of () is just for user (not the user user ) knowledge to see/understand the code more better/efficient or something similar to this.
Once the game is over, the king and the pawn go back in the same box.