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
Copy link to clipboard
Copied
Never mind... the new engine needs a semi colon after the first array, and square brackets around the values
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now