Updated Variables (markdown)

WarmUpTill 2023-04-02 15:35:30 +02:00
parent 08ef25b008
commit 32d60d4b21

@ -120,3 +120,14 @@ Note that it is recommended that the [macro](Macros#what-are-macros) switching t
Otherwise, the value of the previous interval will be used, which might lead to undesired effects.
Without the use of a variable one would have to repeatedly add condition checks to make sure a scene switch did not already happen to avoid rapidly switching between in the same interval.
## Example "Set variable to text source text"
This example shows how to extract the text displayed by a text source into a variable named "Text Source Text".
The condition "Source" is used to assign the settings to the Text Source Text variable initially using the "Set to condition value" variable action.
The value of the condition itself does not matter as it is combined with "Or" and "Plugin is running" which is always true.
Next two "Set to substring of current value" variable actions are used to extract the "text" value of the text source's settings.
![TextSourceToVariable](https://user-images.githubusercontent.com/19472752/229356012-426a186d-e7ff-489f-be26-7e5ead51f42c.PNG)