synchroniz Posted June 4, 2009 Author Share Posted June 4, 2009 Can I just if```If GetVar(blah, blah, blah) = ""```is the same for```If GetVar(blah, blah, blah) = 0```and alsowhich one describes that the GetVar(blah, blah, blah) doesn't exist or is not yet made?? Link to comment Share on other sites More sharing options...
xeross Posted June 5, 2009 Share Posted June 5, 2009 I think if it returns false it doesn't exist, or you can pass a 4th parameter that will be the default, i don't know for sure. Link to comment Share on other sites More sharing options...
balliztik1 Posted June 5, 2009 Share Posted June 5, 2009 "" is the default return value. 0 is not. If you compare the GetVar to "", you can check if a value exists or not. There's a function called VarExists or something like that that returns a boolean value for whether or not a variable exists. I'll find it real quick.Well, I must be crazy or something. I know there was one in a previous version, but all documentation fails to acknowledge that. 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