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

Dimension error

Explorer ,
Mar 18, 2020 Mar 18, 2020

An expression that works fine in 2018 is no longer working in 2020 due to the engine change.  Can anyone here help me riddle out what needs to be changed in the following?

 

cb = effect("2 Line Text")("Checkbox").value;

if (cb) {85,85} else {100,100}

 

The error I am getting is 'expression result must be of dimension 2, not 1'

as far as I can see I have 2 dimensions... 

 

thanks in advance

TOPICS
Expressions
309
Translate
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
Explorer ,
Mar 18, 2020 Mar 18, 2020

Never mind... the new engine needs a semi colon after the first array, and square brackets around the values

Translate
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
Mentor ,
Mar 18, 2020 Mar 18, 2020
LATEST

Yes, the new engine is very picky, you have to write perfect javascript, without the slightest syntax error. 

Good training, though. 

 

*Martin

Translate
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