Archive: Can I "if ... then ...else..."


Can I "if ... then ...else..."
I wanna to Exec different function like this:

if myVar=Value1 then
Exec_Func1
else
Exec_Func2
end if

how can i do


StrCmp $0 "Value 1" 0 +3
Call Function1
Goto done

StrCmp $0 "Value 2" 0 +3
Call Function2
Goto done

....etc....

done:


Function Function1
....code....
FunctionEnd

Function Function2
....code....
FunctionEnd