ExpressionEngine TernaryExpressionEdit Method µStrata MathDaemon™ Computation LibraryMathDaemon Class Library
Edit a formula of the ternary expression

Passed formula is not checked for correct syntax.

Ternary expression will be composed in the followed way:

ifLeft compareType ifRight THEN thenExpression ELSE elseExpression

Or, in ternary way

ifLeft compareType ifRight ? thenExpression : elseExpression

Namespace: uStrata.MathDaemon.Computation
Assembly: uStrata.MathDaemon.Computation (in uStrata.MathDaemon.Computation.dll) Version: 1.1.5779.28281
Syntax

public void TernaryExpressionEdit(
	string name,
	string ifLeft,
	string ifRight,
	string compareType,
	string thenExpression,
	string elseExpression
)

Parameters

name
Type: System String
Name of ternary expression to edit
ifLeft
Type: System String
Left part of condition to compare
ifRight
Type: System String
Right part of condition to compare
compareType
Type: System String
Compare operator or its textual presentation
thenExpression
Type: System String
Expression evaluated in case of "true"
elseExpression
Type: System String
Expression evaluated in case of "false"
See Also