Changes for page SetVar
Last modified by Outhman Moustaghfir on 2024/09/27 13:43
<
>
edited by Outhman Moustaghfir
on 2024/02/02 16:11
on 2024/02/02 16:11
edited by Outhman Moustaghfir
on 2024/01/30 17:09
on 2024/01/30 17:09
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,9 +11,8 @@ 11 11 12 12 === JSON Format === 13 13 14 -[[image: var.png]]14 +[[image:Capture d'écran 2024-01-30 150237.png]] 15 15 16 - 17 17 The JSON file for SetVar has a simple structure. It consists of key-value pairs, where the keys represent variable names, and the values can be either static values or dynamic expressions. 18 18 19 19 ==== Example 1: ==== ... ... @@ -33,7 +33,7 @@ 33 33 }}} 34 34 35 35 {{code language="json"}} 36 -{ "var1": "value1", "var2": "{Env.GetVar;variableName}" } 35 +{ "var1": "value1", "var2": "${Env.GetVar;variableName}" } 37 37 {{/code}} 38 38 39 39 ... ... @@ -57,7 +57,7 @@ 57 57 58 58 59 59 {{code language="json"}} 60 -{ "username": "john_doe", "email": "{Env.GetVar;Email}", "isAdmin": "false"} 59 +{ "username": "john_doe", "email": "${Env.GetVar;Email}", "isAdmin": "false"} 61 61 {{/code}} 62 62 63 63
- var.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.omoustaghfir - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.3 KB - Content