Difference between revisions of "Trigger: MacroDroid Variable Change"

m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=== About ===
 +
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
Will fire when a MacroDroid variable is set to a certain value.
 
Will fire when a MacroDroid variable is set to a certain value.
  
 
Note that when comparing less than or greater than, the trigger will only fire once when the value transitions into this state (not on subsequent updates where that same condition is still met).
 
Note that when comparing less than or greater than, the trigger will only fire once when the value transitions into this state (not on subsequent updates where that same condition is still met).
 +
</pre>
 +
'' See also: '' '' [https://macrodroidforum.com/wiki/index.php/Variables Variables]''
 +
 +
==<p><b>Specific value</b></p>==
 +
 +
===  =  ===
 +
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Means that the whole content of the string variable has to be equal to the whole set of typed characters.
 +
</pre>
 +
'' Compatible with [https://macrodroidforum.com/wiki/index.php/Variables#Standard_Variable_Types Variables | String, Integer, Decimal, Boolean] (Boolean only in the compare values condition/constraints) ''
 +
<br>
 +
 +
===  != ===
 +
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Means that the content of the string variable has to be unequal (i.e. different) to the set of typed characters.
 +
</pre>
 +
'' Compatible with [https://macrodroidforum.com/wiki/index.php/Variables#Standard_Variable_Types Variables | String, Integer, Decimal, Boolean] (Boolean only in the compare values condition/constraints) ''
 +
 +
=== Contains ===
 +
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Means that the content of the string variable has to contain the whole set of typed character. For instance, enter the word information to match with a string variable containing the text: Here are the informations you asked for...
 +
</pre>
 +
'' Compatible with [https://macrodroidforum.com/wiki/index.php/Variables#String Variables | String '']
 +
 +
=== Excludes ===
 +
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Means that the content of the string variable has not to contain the typed text.
 +
</pre>
 +
'' Compatible with [https://macrodroidforum.com/wiki/index.php/Variables#String Variables | String] ''
 +
 +
=== The wildcards '*' ===
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
* stands for any number of character (from 0 to any, same as '.*' in Regex).
 +
</pre>
 +
 +
=== The wildcards '?' ===
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
? is for 1 and only 1 mandatory character (same as '.{1}' in Regex).
 +
</pre>
 +
 +
* '''Tick the box '''Enter regular expression matching''' if the typed text follows Regex syntax, far more powerful than plain text with or without wildcards (for advanced users).'''
 +
 +
==<p><b>Any value change</b></p>==
 +
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Any value, no additional configuration is required.
 
</pre>
 
</pre>

Latest revision as of 21:37, 23 January 2024

About

Will fire when a MacroDroid variable is set to a certain value.

Note that when comparing less than or greater than, the trigger will only fire once when the value transitions into this state (not on subsequent updates where that same condition is still met).

See also: Variables

Specific value

=

Means that the whole content of the string variable has to be equal to the whole set of typed characters.

Compatible with Variables | String, Integer, Decimal, Boolean (Boolean only in the compare values condition/constraints)

!=

Means that the content of the string variable has to be unequal (i.e. different) to the set of typed characters.

Compatible with Variables | String, Integer, Decimal, Boolean (Boolean only in the compare values condition/constraints)

Contains

Means that the content of the string variable has to contain the whole set of typed character. For instance, enter the word information to match with a string variable containing the text: Here are the informations you asked for...

Compatible with Variables | String

Excludes

Means that the content of the string variable has not to contain the typed text.

Compatible with Variables | String

The wildcards '*'

* stands for any number of character (from 0 to any, same as '.*' in Regex).

The wildcards '?'

? is for 1 and only 1 mandatory character (same as '.{1}' in Regex).
  • Tick the box Enter regular expression matching if the typed text follows Regex syntax, far more powerful than plain text with or without wildcards (for advanced users).

Any value change

Any value, no additional configuration is required.