Origin-OS icon indicating copy to clipboard operation
Origin-OS copied to clipboard

[OSL] Add JS-like or operations

Open Mistium opened this issue 1 year ago • 0 comments

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

Mistium avatar Aug 20 '24 11:08 Mistium