Sign in to follow this  
Followers 0
quimber

Calculator?

5 posts in this topic

Hello Fellows.

Isnt there any form for calculator in AutoIt ?

How can i do this:

$var = +1

My script is like this:

Func 1()

if $var <= 1 then
   Statement
Elseif $var = 2 then
   Statement
Elseif $var = 3 then
   Statemen
....

Endfunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

To increment a variable just make it equal to itself plus whatever you want to add, like:

$var = $var +1
Edited by muncherw

Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic]

Share this post


Link to post
Share on other sites

or:

$var += 1

Share this post


Link to post
Share on other sites

Thank you :P works great now :(

Share this post


Link to post
Share on other sites

Thank you :P works great now :(

unfortunately unlike java and c++ and other languages, you can't just use

$var++


global $warming = true

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