-
if/else condition in 2-dimensional parameters (size)?
ahoi,
im am learning since some weeks a little bit expressions and i came to the point to understand and use if/else conditions. Now i was trying to put an if/els into the size of an square shape layer.
I wrote this:
if((SizeX = thisComp.width) < 1000) {
SizeX / 2
}else{
SizeX
};
var SizeY = thisComp.height;
[SizeX,SizeY]no errors, but its not working 🙁
if i put this into an expression slider for each dimension and connect them to the shape layer it works…
if((SizeX = thisComp.width) < 1000) {
SizeX / 2
}else{
SizeX
}no idea what i did wrong…?