Jump to content
Sign in to follow this  
mentosan

use 2 statements in the same line ?

Recommended Posts

mentosan

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

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

Share this post


Link to post
Share on other sites
ReaImDown

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

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

If Not <expression> Then 
     <statement>
     <statement>
endif

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites
Ealric

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]

Share this post


Link to post
Share on other sites
mentosan

<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

Share this post


Link to post
Share on other sites
cramaboule

<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.

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.