📝 More explicite set variable compute examples
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user