Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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)

'_string_' + '_string_'

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

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

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

}}