
Specialist II
2018-04-27
10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Trace Variable value +1 ?
Hi Guys,
i would like to trace the value of a variable +1 without creating a new one with +1 added....
I've already tried these approach:
set x=4;
Trace $(x)+1; ----> Result: "4+1"
Trace $(x+1); -----> Result: "empty"
I would like to see the result "5" in my script loading windows....
How to achieve this ?
Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
If a post helps to resolve your issue, please accept it as a Solution.
6,268 Views
1 Solution
Accepted Solutions

MVP
2018-04-27
11:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 Replies

MVP
2018-04-27
11:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be using another variable
SET x = 4;
LET y = $(x) + 1;
TRACE $(y);

Specialist II
2018-04-27
11:19 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is this the only way ?
As i wrote i wouldn't create a new variable...
Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
If a post helps to resolve your issue, please accept it as a Solution.
6,095 Views

MVP
2018-04-27
11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess not, it seems that TRACE doesn't really allow you to perform a calculations... all the calculations have to be perform ahead of time.... the only thing it can do is to evaluate the value of a already created calculation using dollar sign expansion.
