Talk:Operator Reference

From the Fallout4 CreationKit Wiki
Revision as of 15:26, 25 August 2016 by imported>Gurgate (Created page with "this does not sound to be worded correctly to me. am i thinking about that too hard? :"The OR operator (||) will be true if one of the expressions to its left and right are t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this does not sound to be worded correctly to me. am i thinking about that too hard?

"The OR operator (||) will be true if one of the expressions to its left and right are true, and will short-circuit if the right expression is true (it will not evaluate the left expression at all)."
and will short-circuit if the right expression is true (it will not evaluate the left expression at all).
(it will not evaluate the left expression at all)
Function X()
  Debug.Notification('x was evaluated')
EndFunction

Function Y()
  Debug.Notification('y was evaulated')
EndFunction
If(X() || Y())
EndIf

that last bit suggests we would never see 'x was evaluated'. --Darkconsole (talk) 2016-08-25T16:26:29 (EDT)