Jump to content
Sign in to follow this  

Missing endif?..

Recommended Posts


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)
    $c = 100 - ($a + $b)

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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.