diff --git a/apps/docs/docs/editor/blocks/logic/set-variable.md b/apps/docs/docs/editor/blocks/logic/set-variable.md index 57f3b31f0..195662148 100644 --- a/apps/docs/docs/editor/blocks/logic/set-variable.md +++ b/apps/docs/docs/editor/blocks/logic/set-variable.md @@ -38,6 +38,12 @@ Compute a percentage: {{Score}} * 100 / {{Max Score}} ``` +Extract the first name from a full name: + +``` +{{Full name}}.split(' ')[0] +``` + ## Code The code value should be written Javascript. It will read the returned value of the code and set it to your variable.