I have a Property, X, which is a number.
How do I use ([Property:X] + 1) as a placeholder in my visio drawing? For example I might want to get a parameter with the PID X as well as X+1.
Robin Becker [DevOps Advocate] Selected answer as best 21st January 2022
Hi Robin,
You can use the placeholder Sum as explained in our help here Notice there is also a placeholder Subtract but it only works for time-related values.
In your example the placeholder's content should be:
[Sum:[Property:X], 1] to add one to the value of the property X.
Robin Becker [DevOps Advocate] Selected answer as best 21st January 2022
Awesome, thank you!
For anyone else who tries to combine this with RegexReplace: You don’t seem to be able to use [Sum] inside the third parameter of RegexReplace but you can surround RegexReplace with Sum (So if you have a string “A.10” you would have to use 2 RegexReplace, one for the “A.”-part and then a [Sum[RegexReplace…]] on the number).