Skip to content

Commit 9d7bd8b

Browse files
Merge pull request #95 from seibert-media/persistent-vars
README: Describe usage of PVARS better
2 parents 96976c4 + 36730b9 commit 9d7bd8b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,17 @@ dictonary keys are also available as attributes.
448448
or `PERSISTENT_VARS.v2 = v2`
449449
- Use the shortcut like `PVARS.v2 = v2`
450450

451-
You can use variables in PERSISTENT_VARS also as condition by
452-
using the shortcut and the attribute notation:
451+
**Note: Following works ONLY with the shortcut "PVARS"**:
452+
453+
You can use these variables also as condition or as normal automatix
454+
variable in curly brackets by using the shortcut and the attribute notation:
453455

454456
- python: PVARS.cond = some_function()
455457
- PVARS.cond?local: echo 'This is only printed if "some_function" evaluates to "True"'
456458
- PVARS.cond!?local: echo 'And this is printed if "some_function" evaluates to "False"'
459+
- local: echo "The condition variable contains the value '{PVARS.cond}'."
457460

458-
Since version 2.4.0 making variables global does not work any longer!
461+
*Since version 2.4.0 making variables global does not work any longer!*
459462

460463
### Abort and Skip Exceptions
461464

0 commit comments

Comments
 (0)