Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | if SEARCH    

  Functions
?
doEvent.eventName
event.end
event.eventName
for
for.exit
for.next
function.end
function.functionName
if
if.else
if.end
return
while
while.end
while.exit

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Statement
if

Language: MioScript
Product: MioFactory


Syntax

if(Condition)


Parameters

CONDITIONConditionCondition to be evaluated.
For more information: MioScript: Conditions


Return value

No value is returned.


Description

If the result of the condition is true, the code between if and if.end or if.else (if any).

If the result of the condition is false the code between if.else and if.end is interpreted (if any).

See also: if.else, if.end

More information: MioScript: Conditions




MioScript Sample Code

if(&firstVar = &secondVar)
    ...
if.else
    ...
if.end