> For the complete documentation index, see [llms.txt](https://docs.expression-library.bearstudios.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expression-library.bearstudios.co.uk/adding-custom-controls/example-expression/standard-expression.md).

# Standard Expression

### Example 1:

Property: position\
Description: Sets the X and Y to 100

```javascript
//sets the x position
var x = 100;
//sets the y position
var y = 100;
[x,y]
```

### Example 2:

Property: scale\
Description: times the scale by the comp time

```javascript
//gets the comp time
var compTime = time;
//set the scale value
var scale = 100;
//times scale by time
var scaleMath = scale*compTime;
[scaleMath,scaleMath]
```

### Example 3:

Property: rotation\
Description: rotate based on x position to comp

```javascript
//get comp width
var compWidth = thisComp.width;
//get x position
var xPos = thisLayer.transform.position[0];
//set start rotation
var startRot = 0;
//set end rotation
var endRot = 360;
//rotate bewteen start and end based on comp X
linear(xPos, 0, compWidth, startRot, endRot)
```
