Jump to content

Recommended Posts

Posted (edited)

If IniRead("C:\her.ini","count","$10c ~$65c", "Notfound") = 1 Then
Exit
EndIf

how can i in a simple way code, when all $10c, $11c, $12c....$65c are = 1 then exit?

Edited by Wb-FreeKill
Posted (edited)

*I'm a little sick.*

I'm not sure if this does what you want.

$Matched = 1
For $i = 10 To 65
   $val = IniRead("C:\her.ini","count","$" & $i & "c", "Notfound")
   If $val <> "1" Then
      $Matched = 0
   EndIf
Next
If $Matched = 0 Then
  ;At least one value does not equal the number "one"!
Else
  ;No value contained anything other than the number "one"
   Exit
EndIf
Edited by SlimShady

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...