Jump to content

Autoit miscalculates? Am i going crazy?


Recommended Posts

I have a loop like this: While $count<=$total ... and when $count gets bigger then 1 it passes the loop. $total is always 14.

2<=14 -false

5<=14 -false

...? Anyone got any ideas?

Weird thing is that the loop worked perfect until recently and i havent changed any of its content. I only changed how $count value gets set. That is from an .ini file.

EDIT: Yeah it works if i just set a number like $count=5, but it does not work when i have $count=iniread... Why? Help greatly appreciated.

Edited by darkmaster071
Link to comment
Share on other sites

  • Developers

Weird thing is that the loop worked perfect until recently and i havent changed any of its content. I only changed how $count value gets set. That is from an .ini file.

Your read "value" will be a string in stead of a number.

Change the read value from the INI file to a real value with Number().

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...