Hey Tony,
Thanks for your patience with this issue.
First, just to set your expectations here, we cannot help at all with custom coding, and all custom coding endeavors are ones you have to fully take on yourself. You can read more about this in our support policy here.
However, with that being said, I think the has_term() suggestion Cliff made may actually work here.
I think you should try using this, though:
Tribe__Events__Main::TAXONOMY
Instead of this:
$tecmain::TAXONOMY
Make that seemingly-simple change and let us know if anything improves!
Cheers,
George
PS
Just to be absolutely clear, an example of that change in practice would be like this:
if ( is_tax( Tribe__Events__Main::TAXONOMY, 22 ) ) {
// Stuff...
} elseif ( is_tax( Tribe__Events__Main::TAXONOMY, 23 ) ) {
// Other stuff...and so on...
}