darkmaster071 Posted June 14, 2010 Share Posted June 14, 2010 (edited) 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 June 14, 2010 by darkmaster071 Link to comment Share on other sites More sharing options...
Developers Jos Posted June 14, 2010 Developers Share Posted June 14, 2010 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 More sharing options...
darkmaster071 Posted June 14, 2010 Author Share Posted June 14, 2010 Yep, works. I knew that someday the autoit all-in-one variable will get to me Thanks for your help and your fast reply. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now