Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! 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: