Sign in to follow this  
Followers 0
Helixanon

Missing endif?..

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



FFFFF

Okay please delete this, I forgot the ")" ;_;

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