Origin-OS
Origin-OS copied to clipboard
[OSL] Add JS-like or operations
For an or statement, you can use
if in1 == true (
return true
) else (
return in2
)
And then you get the same functionality as
log "hello" || "huh"
unless the first item is true, it will return the second one, kinda like the ? operator. idk if this would be useful to have but its certainly interesting