Sign in to follow this  
Followers 0
rgj_time

Variable Constants

4 posts in this topic

I am looking for the syntax to declare constants. I have been digging throught the help files without help. If I search for "constant" it doesn't give me anything.

thanks.

Share this post


Link to post
Share on other sites



There is no difference between variables and constants. The only thing is don't change the value. :whistle:

red

Share this post


Link to post
Share on other sites

Thanks for the smug reply!! :whistle:

I have built an include file with variable declarations. 3 are $TRUE, $FALSE, and $NULL. I was trying to guard against myself from accidentaly changing the value. Are there plans to implement boolean datatypes?

Share this post


Link to post
Share on other sites

0 is false. Non-0 is true. Any string that does not evaluate to a number is considered false(0).

If "12.4" Then ;Will be considered true :whistle:


David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0