If Preset Active Then Perform... syntax?

Rossd

2009-05-15 06:27:02

Does anyone know the proper syntax for:

If Preset B is active then perform outgoing?

or conversely:

If Preset A is active skip Translator or Outgoing?

Thanks!
R

florian

2009-05-22 09:27:12

Hi Rossd,

MT doesn't have an IF clause to check the active state of a preset. But you can use global variables as flags to work around it:

Code: Select all

PRESET A:
Translator 1: Activate Preset A, set ga
Options: stop=false
Incoming: on activation of this preset
Rules: 
  ga=1
Outgoing: (none)

Translator 2: Deactivate Preset A, reset ga
Options: stop=false
Incoming: on deactivation this preset
Rules: 
  ga=0
Outgoing: (none)

PRESET B:
Translator 1: Activate Preset B, set gb
Options: stop=false
Incoming: on activation of this preset
Rules: 
  gb=1
Outgoing: (none)

Translator 2: Deactivate Preset B, reset gb
Options: stop=false
Incoming: on deactivation this preset
Rules: 
  gb=0
Outgoing: (none)
Now in order to only execute a given translator when preset b is active, insert this rule into the translator entry:

IF gb = 0 THEN exit rules, skip Outgoing Action

[the logic is the other way around, i.e. "the translator is not executed if preset b is not active]

Now to NOT execute a translator only when preset A is active, insert this rule in to the translator:

IF ga = 1 THEN exit rules, skip Outgoing Action

Hope that helps!
Florian

Rossd

2009-05-22 18:30:01

Thank you!