Skip to content
Discussion options

You must be logged in to vote

The builtin or function does this. From the docs:

or

Returns the boolean OR of its arguments by returning the first non-empty argument or the last argument, that is, "or x y" behaves as "if x then x else y". Evaluation proceeds through the arguments left to right and returns when the result is determined.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lockszmith-GH
Comment options

Answer selected by Lockszmith-GH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants