feat: add ternary conditional

This commit is contained in:
Ibrahim Abdulhameed committed 2025-09-01 12:54:48 +01:00
1 parent 0f92454648
commit 49c4cfbe72
1 file changed
+5
+5
View File
@@ -185,6 +185,11 @@ elseif num < 10 then
else
print("num is 10")
end
-- making a ternary operator
-- This is similar to the a?b:c operator in C/js:
ans = aBoolValue and 'yes' or 'no' --> 'no'
```
## Loops