Sign in to follow this  
Followers 0
mentosan

use 2 statements in the same line ?

7 posts in this topic

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



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

#3 ·  Posted (edited)

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

<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

<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  
Followers 0