Page 1 of 1

Merge tags

Posted: Wed Oct 09, 2019 7:14 am
by BeeJee
I just wondering if you can merge tags using script.
As example you make a intertal tags "naming" and "type" as string
and "number" as integer.

Can you do something like "naming" = "type" + "Number"

Re: Merge tags

Posted: Thu Oct 10, 2019 7:33 am
by AMitchneck
Hi BeeJee,

What do you mean by merge?

Do you mean if "type" has the string value "world" and number has the integer value '9' that you want naming to have the string value "world9"?

If yes, you can use string.Format:

globals.Tags.naming.Value = string.Format("{0}{1}", globals.Tags.type.Value, globals.Tags.number.Value);

another method is to use concatenation:

globals.Tags.naming.Value = globals.Tags.type.Value + globals.Tags.number.Value.ToString();