2
0

📝 More explicite set variable compute examples

This commit is contained in:
Baptiste Arnaud
2022-09-01 08:07:56 +02:00
parent cf07cfe3ab
commit a16118027d

View File

@ -12,16 +12,32 @@ This value can be any kind of plain text but also **Javascript code**.
## Expressions with existing variables
It means you can apply operations on existing variables:
It means you can apply operations on existing variables.
Add a value to your variable:
```
{{Score}} + 5
```
Compute a sum of variables:
```
{{Score}} + {{Answer}}
```
Multiply variables together:
```
{{Score}} * {{Multiplier}}
```
Compute a percentage:
```
{{Score}} * 100 / {{Max Score}}
```
## Current Date
You can create a `Submitted at` (or any other name) variable using this code: