Aktonius Posted July 26, 2011 Share Posted July 26, 2011 Would you use $a = Number($string) + Number($string2) or $a = Execute($string+$string2) I have alot of the first case(using number) and wonder is it really worth it that i convert it to execute? Link to comment Share on other sites More sharing options...
JoHanatCent Posted July 26, 2011 Share Posted July 26, 2011 Would you use $a = Number($string) + Number($string2) or $a = Execute($string+$string2)I have alot of the first case(using number) and wonder is it really worth it that i convert it to execute?$a = $string + $string2Unless it came from some strangly formatted source! Link to comment Share on other sites More sharing options...
monoscout999 Posted July 26, 2011 Share Posted July 26, 2011 autoit makes the convertion automaticly use the string $a = "50" $b = 5 $c = $a + $b consolewrite($c&@CRLF) doesn´t matter what type are. Link to comment Share on other sites More sharing options...
Aktonius Posted July 26, 2011 Author Share Posted July 26, 2011 So what is the point of Execute then? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 26, 2011 Developers Share Posted July 26, 2011 So what is the point of Execute then?Think the Helpfile shows a pretty simple example to explain that...no? 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...
Aktonius Posted July 27, 2011 Author Share Posted July 27, 2011 Think the Helpfile shows a pretty simple example to explain that...no? I believe i am missing something since i dont see whats the diff from example: $a=1 $v=Execute("$a+1") ; $v is set to 2 with $v = $a + 1 ? 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