Strategy: Preventing events triggering at startup

<< Click to Display Table of Contents >>

Navigation:  User Guide >

Strategy: Preventing events triggering at startup

Previous pageReturn to chapter overviewNext page

 

How to prevent a Strategy Event triggering when SpecView starts?

 

For example, if Strategy tests a boolean, but it is necessary that neither the 'On' nor 'Off' events are triggered when SpecView starts (or goes 'Online')...

 

To prevent this create an additional Boolean User Variable that will be used as a 'mirror' of the first one.

In Strategy add two new events :

 If 'Bool is On' with the action: set 'MirrorBool to On'

 If 'Bool is Off' with the action: set 'MirrorBool to Off'

Then in the original 'If Bool is On' event add 'Enable on Boolean: MirrorBool is Off'.

And in the original 'If Bool is Off' event add 'Enable on Boolean: MirrorBool is On'.

 

This will prevent these events triggering when SpecView starts.

 

This works because the 'Enable on Boolean' functions as an AND operator.

When SpecView starts (or goes 'Online') neither statement:

 'If Bool is On' AND 'MirrorBool is Off'

nor

 'If Bool is Off' AND 'MirrorBool is On'

will be true.

 

This is described in more detail here.