Adjusting Trigger objects and variable with other triggers

Aug 04, 2023

I want to be able to change the name of an object or variable being invoked for a trigger by changing the reference in a second trigger.


3 Replies
Walt Hamilton

Do you mean something like  "Change value of [variable named in variable chosenObject] to "brown" where chosenObject can contain either cow or horse? Programmers have been wanting to do that since the 1950's. I'm unaware of any language known to man that can do that with one statement.

Try something like "Change value of variable Cow to "brown" if value of chosenObject = "cow", else change value of variable horse to "brown" if value of chosenObject = "horse"? Two statements, but it can work.