Jump to content
Sign in to follow this  
rgj_time

Variable Constants

Recommended Posts

rgj_time

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
redndahead

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
rgj_time

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
Nutster

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.