Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

TCS/FAQ

< TCS

< To: TCS

TCS FAQ

How to declare optional attributes and references in TCS

To declare optional elements, you should use the following syntax: ( maCondition ? thenSequence : elseSequence)

For example:

"booleanValue" ":" (myBooleanAttribute ? "true" : "false")
(isDefined(mySampleReference) ? "subElements" "{" mySampleReference "}")

Back to the top