themarketguy
New Member
- Joined
- Jun 24, 2015
- Messages
- 117
Good morning,
I'm presented with a need to loop a profile without enclosing it within a while statement (<While Condition="1 == 1"> or something similar). Why you may ask? It appears that avoid tags may only be initialized at the root profile tag level in the XML (<Profile><Avoid/><Other Tags></Other Tags><Avoid Remove="true"/></Profile>), which means if you try to put an avoid tag within a while loop or an if statement they are ignored, or maybe not ignored but handled in a way that doesn't initialize them at least. The profile I'm working on spans many different zones, and in an attempt to incorporate best practices I want to initialize the avoidance for the given zone and clean it up when leaving the same zone.
Currently the way the profile is built it is wrapped in a while loop that keeps it circling through from start to finish with if statements throughout that handle zone transfers and the to-dos. As such, in order to initialize the avoidance it would need to be at the beginning and couldn't be cleaned up.
Any thoughts, ideas, or solutions would be greatly appreciated.
I'm presented with a need to loop a profile without enclosing it within a while statement (<While Condition="1 == 1"> or something similar). Why you may ask? It appears that avoid tags may only be initialized at the root profile tag level in the XML (<Profile><Avoid/><Other Tags></Other Tags><Avoid Remove="true"/></Profile>), which means if you try to put an avoid tag within a while loop or an if statement they are ignored, or maybe not ignored but handled in a way that doesn't initialize them at least. The profile I'm working on spans many different zones, and in an attempt to incorporate best practices I want to initialize the avoidance for the given zone and clean it up when leaving the same zone.
Currently the way the profile is built it is wrapped in a while loop that keeps it circling through from start to finish with if statements throughout that handle zone transfers and the to-dos. As such, in order to initialize the avoidance it would need to be at the beginning and couldn't be cleaned up.
Any thoughts, ideas, or solutions would be greatly appreciated.