And very much appreciated your help.
As a matter of fact I have another question. If you look in my screenshot, last column, the percentage difference.
As you can see the last 2 rows are different from the top 3. I am always trying to be consistent, not sure yet which format I like but how can you alter them, for example getting rid of the brackets and/or adding the sign (+ or -).
It is currently March 29th, 2024, 12:42 am
decimal symbol problems in webparser
-
- Posts: 7
- Joined: November 24th, 2017, 6:10 pm
-
- Posts: 14
- Joined: June 7th, 2016, 7:04 am
Re: decimal symbol problems in webparser
Whoops. Thanks for the catch. Post amended with correct form.balala wrote:arty_fish, have you tried your code? Because IfCondition=0 doesn't work. I didn't enter too deeply in your code, but this option in this form definitely doesn't work. It probably should be IfCondition=(#CURRENTSECTION#=0).
Last edited by arty_fish on November 26th, 2017, 6:37 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: decimal symbol problems in webparser
Add the following Substitute option to both the [MeasureStock4_ChangePer] and [MeasureStock5_ChangePer] measures: Substitute="(":"",")":"".jacobus60 wrote:getting rid of the brackets
Add the following options to the [MeasureStock4_Change] and [MeasureStock5_Change] measures:jacobus60 wrote:adding the sign (+ or -).
Code: Select all
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetOption MeterStock5_ChangePer Text "+%1"]
IfCondition2=(#CURRENTSECTION#=0)
IfTrueAction2=[!SetOption MeterStock5_ChangePer Text "%1"]
IfCondition3=(#CURRENTSECTION#<0)
IfTrueAction3=[!SetOption MeterStock5_ChangePer Text "-%1"]
-
- Posts: 7
- Joined: November 24th, 2017, 6:10 pm
Re: decimal symbol problems in webparser
You are the best, thank you once again.
Last edited by jacobus60 on November 26th, 2017, 3:26 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania