Temporary Variables in Calc Script
Are there any tricks for storing strings in temporary variables in PBCS? I'm trying to find a way to use a dynamic script instead of repeating similar code.
I have a requirement to split certain dollars into several different accounts, and the code is primarily the same except the suffix.
For example, I have the following accounts:
Direct (g123456 a1)
Direct (g654321 a2)
This results in two different lines of code because of the suffix:
@member(@concatenate(@concatenate("Direct (g", @hspnumtostring(laborAccount)), " a1)"))
@member(@concatenate(@concatenate("Direct (g", @hspnumtostring(laborAccount)), " a2)"))
I have not been able to find a way to create a temporary variable to pass the suffix into my code and then call a script.