duckscript/examples/if_else.ds
2019-12-31 23:24:06 +00:00

43 lines
570 B
Plaintext

if true
echo in if as value
end_if
if false
echo should not be here
end_if
if not false
echo in if as value with not condition
end_if
if set true
echo in if as command
end_if
if set false
echo should not be here
else
echo in else
end_if
if set false
echo should not be here
elseif set true
echo in else if
else
echo should not be here
end_if
if set false
echo should not be here
elseif set true
echo in else if but not done yet
if set true
echo nested if
end_if
else
echo should not be here
end_if