bluerein Posted October 18, 2008 Share Posted October 18, 2008 Ive got a variable like so $key = 12345678 I need to find if the variable is wrong,so I thought if not $key = 12345678 then exit but that doesnt work Whats the best way to go about this?? regards bluerein Link to comment Share on other sites More sharing options...
wraithdu Posted October 18, 2008 Share Posted October 18, 2008 (edited) if $key <> 12345678orif not ($key == 12345678)Your way, the 'not' attaches to $key first, so your expression becomes (assuming $key is non-zero)if 0 = 12345678 Edited October 18, 2008 by wraithdu Link to comment Share on other sites More sharing options...
Andreik Posted October 18, 2008 Share Posted October 18, 2008 Ive got a variable like so $key = 12345678 I need to find if the variable is wrong,so I thought if not $key = 12345678 then exit but that doesnt work Whats the best way to go about this?? regards bluerein Please post in right forum. Here is Example forum. The answer: If $key <> 12345678 Then Exit When the words fail... music speaks. Link to comment Share on other sites More sharing options...
bluerein Posted October 18, 2008 Author Share Posted October 18, 2008 Im so sorry just realized I posted in examples! Just got up ...lol Thanks for the replys guys!! If I mod could move the top...thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now