mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-14 03:42:32 +00:00
43 lines
570 B
Plaintext
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
|