Highlighted

Dimension error

Explorer ,
Mar 18, 2020

Copy link to clipboard

Copied

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

Views

33

Likes

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

Dimension error

Explorer ,
Mar 18, 2020

Copy link to clipboard

Copied

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

Views

34

Likes

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
Explorer ,
Mar 18, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Guide ,
Mar 18, 2020

Copy link to clipboard

Copied

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

Good training, though. 

 

*Martin

Likes

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
Reply
Loading...