Helixanon Posted September 11, 2016 Share Posted September 11, 2016 Hi, I can't say I'm new to AutoIt, been doing some cool stuff with it for months, but today I've encountered something which is... beyond my knowledge and understanding :\ Here's the simplified part of script (it's enough for the syntax error though): $a = Int(Random(0, 255)) $b = Int(Random(0, 255)) If (($a + $b) >= 100) Then $c = Int(Random(0, 255) Else $c = 100 - ($a + $b) EndIf It gives out the error (syntax error) in both If and Else blocks. I've googled for like 15 minutes for similar cases, but mostly those were just the users' typos. I can neither see any logic flaw or syntax error, so... mind helping me, please? I've also tried $d = $a + $b ... with further usage of $d instead, but same thing. Link to comment Share on other sites More sharing options...
Helixanon Posted September 11, 2016 Author Share Posted September 11, 2016 FFFFF Okay please delete this, I forgot the ")" ;_; 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