Quantcast
Viewing all articles
Browse latest Browse all 12506

Cannot get simple IF - ELSE statement to work.

I am trying to do something like this...



[ autoit ]      
$var = Regread($Value) If @Error < 0 Then Msgbox(0,"test", "Does Not Exist") Else Msgbox(0,"test", "Does Exist")

But everytime I do, it tells me I cant use ELSE without a matchinf IF statement.  Why does this not work?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>