Hello,
I have created this code:
if (w > maxWidth || h > textHeight) {
if (y < x) {
[y, y]
} else {
[x, x]
}
} else {
[value[0], value[1]]
}
It is a piece, but it gives to understand what I want to optimize without the rest.
How to modify this code to work with: Switch Statement instead If/Else mode?
This is a expression of After Effects.
Thanks.