Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Operator

Description

Example

Condition ? 'string' : 'string'

conditional (ternary) operator. Takes three operands: a condition followed by a question mark (question), then an expression to execute if the condition is TRUE followed by a colon ((smile), and finally the expression to execute if the condition is FALSE.

function getFee(isMember) {
return (isMember ? '$2.00' : '$10.00');
}

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0cb64c28-fda5-4f9d-bc21-e9999a69532c"><ac:plain-text-body><![CDATA[startingPointData['Owner1.EntityName'] ? 'Entity' : 'Person'

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bf17a8e5-b26d-459a-af87-d880e99fd802"><ac:plain-text-body><![CDATA[

'string' + 'string'

concatenation operator (plus) concatenates two string values together, returning another string

startingPointData['Owner1.FirstName'] + ' ' + startingPointData['Owner1.LastName']

]]></ac:plain-text-body></ac:structured-macro>



  • No labels