Jump to content

use 2 statements in the same line ?


mentosan
 Share

Recommended Posts

Is it possible to use 2 statements under the same condition :

If Not <expression> Then <statement>&&<statement> ?

If Not <expression> Then
    <statement>
    <statement>
EndIf

Or

If Not <expression> Then
For ...
  ..
Next
While ...
  ..
Wend
function()
nextFunction()
etc.
EndIf
Edited by Ealric

My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

Link to comment
Share on other sites

<statements> are in fact functions,not variables, which are detailed at the end of the script.

If Not <expression> Then Modify() && ExitProgram() ?

Func Modify()

.....

EndFunc

Func ExitProgram()

Exit (0)

EndFunc

If Not <expression> Then

Modify()

ExitProgram()

Endif

Func Modify()

.....

EndFunc

Func ExitProgram()

Exit (0)

EndFunc

C.

Link to comment
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
 Share

  • Recently Browsing   0 members

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