• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Limit Element to first or last (FM2022)

Enthusiast ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

In one of our elements, CELLTEXT, we have the following General Rule (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*Another element, SLIDE, can appear only appear once, either as the first element within CELLTEXT before those in the General Rule, or the last element after those in the General Rule.

 

I can change the General Rule to be Slide?,  (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)* so it can appear first, or  (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, Slide? so it can appears last. Is there a way to combine these into a single General Rule?

Views

116

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 06, 2022 Nov 06, 2022

I've managed to solve it - I'd forgotten about using &, meaning the elements can appear in any order. By having the General Rule as Slide? & (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, the Slide element can either preceed or follow those elements in parenthesis.

Votes

Translate

Translate
Enthusiast ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

LATEST

I've managed to solve it - I'd forgotten about using &, meaning the elements can appear in any order. By having the General Rule as Slide? & (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, the Slide element can either preceed or follow those elements in parenthesis.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines