Sign in to follow this  
Followers 0
lonewolf

Variables with Math

4 posts in this topic

How might i use math in varables, i doesn't seem to work for me.

$NEWval = $NEWval + 1

I've included the math file.

Thanks,

Lonewolf

Share this post


Link to post
Share on other sites



What math file?

Dim $NEWval = 59
$NEWval = $NEWval + 1
If IsNumber($NEWval) Then MsgBox(0,'test math',"NEWval = " & $NEWval)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

the help file said something about a math file.

Share this post


Link to post
Share on other sites

the help file said something about a math file.

The help file may have been mentioning the Math.au3 include file, which adds the functionality to your script specified by 'Math Management' in the help file's index. You don't need to #include it if you don't need that functionality.

$NEWval = $NEWval + 1

This will increment the current value of $NEWval by 1. If $NEWval was non-existent, empty or non-numeric before this then $NEWval will now contain a value of 1.

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