Ster Posted August 1, 2005 Share Posted August 1, 2005 without testing it i was wondering about the if statement's expression evaluation.if i use: IF Exp1 OR Exp2 does it skip evaluating the second expression if the first was true? Link to comment Share on other sites More sharing options...
quaizywabbit Posted August 1, 2005 Share Posted August 1, 2005 yes [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
blindwig Posted August 1, 2005 Share Posted August 1, 2005 without testing it i was wondering about the if statement's expression evaluation.if i use: IF Exp1 OR Exp2 does it skip evaluating the second expression if the first was true?<{POST_SNAPBACK}>I had this same question a while back, but I never posted here because you can verify that yourself in about 10 seconds:If 0 And Msgbox(0,'And','Did not Skip') Then ConsoleWrite('You will never see this') If 1 Or Msgbox(0,'Or','Did not Skip') Then ConsoleWrite('You will always see this')Notice you never seen the message boxes... My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions 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