-
Define range of position coordinates
I want to create an expression that limits the position values of a layer to a defined range of coordinates.
The range of both x and y should be 0-200.
x = value[0] ;
y = value[1] ;if (x > 0){
[x, y];}
else{ [0,y];}
// Locks x as expected on the leftif (x < 200){ [x, y];} else{ [200 , y ];} // When this line is added the layer is locked on the right, but the previous if-statement is ignored. Additional code for the y values is needed. Any help appreciated.