Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi, i need this operator in mathcad (ll)
ll Represents a logical OR
operation that employs short-circuiting behavior. That is, expr2
is not evaluated if expr1
is logical 1
(true
). Each expression must evaluate to a scalar logical result.
Look at the Boolean toolbar. The v symbol does what you want.
Alan
It does the OR, but it doesn't 'short-circuit', does it?
Luc
@LucMeekes wrote:
It does the OR, but it doesn't 'short-circuit', does it?
Luc
Mathcads OR does short circuit eval, otherwise doIt(0) would throw an error in the following example
Ah, (real) Mathcad does,
but Prime:
I've been using Prime too much...
Luc
ll Represents a logical OR
operation that employs short-circuiting behavior. That is, expr2
is not evaluated if expr1
is logical 1
(true
). Each expression must evaluate to a scalar logical result.
I have found no reliable way to do that in Mathcad.
Do you really need it to short-circuit?
If your first expression is 'per', then the second expression 'per<0' can also be calculated...
Luc
Mathcad (or at least as I use it) doesn't have functions that return logical true/false. How about
playing games: