It is currently March 29th, 2024, 12:42 am

decimal symbol problems in webparser

Get help with creating, editing & fixing problems with skins
User avatar
jacobus60
Posts: 7
Joined: November 24th, 2017, 6:10 pm

Re: decimal symbol problems in webparser

Post by jacobus60 »

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 -).
arty_fish
Posts: 14
Joined: June 7th, 2016, 7:04 am

Re: decimal symbol problems in webparser

Post by arty_fish »

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).
Whoops. Thanks for the catch. Post amended with correct form.
Last edited by arty_fish on November 26th, 2017, 6:37 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: decimal symbol problems in webparser

Post by balala »

jacobus60 wrote:getting rid of the brackets
Add the following Substitute option to both the [MeasureStock4_ChangePer] and [MeasureStock5_ChangePer] measures: Substitute="(":"",")":"".
jacobus60 wrote:adding the sign (+ or -).
Add the following options to the [MeasureStock4_Change] and [MeasureStock5_Change] measures:

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"]
User avatar
jacobus60
Posts: 7
Joined: November 24th, 2017, 6:10 pm

Re: decimal symbol problems in webparser

Post by jacobus60 »

You are the best, thank you once again. :thumbup:
Last edited by jacobus60 on November 26th, 2017, 3:26 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: decimal symbol problems in webparser

Post by balala »

Glad to help.