Help me solve the problem!
The #U# parameter changes, but it does not count IfCondition1, 2 and 3.
How do I get it to replace the text according to #U# ?
MaestroSky wrote: ↑June 2nd, 2021, 9:36 am
Help me solve the problem!
The #U# parameter changes, but it does not count IfCondition1, 2 and 3.
How do I get it to replace the text according to #U# ?
[MeasureCurrentTime]
Measure=Calc
IfCondition=#U# < MeasureCreated_at1
IfTrueAction=[!SetOption Meter1 Text "[MeasureCreated_at1]"]
IfFalseAction=[!SetOption Meter1 Text #*U*#]
IfCondition2=(MeasureCreated_at2 >= #U#) && (MeasureCreated_at3 <= #U#)
IfTrueAction2=[!SetOption Meter1 Text "[MeasureCreated_at2]"]
IfFalseAction2=[!SetOption Meter1 Text #*U*#]
IfCondition3=(MeasureCreated_at3 >= #U#) && (MeasureCreated_at2 <= #U#)
IfTrueAction3=[!SetOption Meter1 Text "[MeasureCreated_at3]"]
IfFalseAction3=[!SetOption Meter1 Text #*U*#]
________________________________________________________
;---------------------This is not going to work since the measure MeasureCurrentTime never changes.
;---------------------So you just have to update this measure everytime the other three measures change and use OnUpdateAction.
;---------------------OnChangeAction=[!UpdateMeter Meter1][!Redraw]
________________________________________________________
OnUpdateAction=[!UpdateMeter Meter1][!Redraw]
--------------------------------------------------------------------------------
________________________________________________________
;---------------------I am putting UpdateDivider to be -1 so that skin doesn't redraw every update but only
;---------------------when the value of other measures change and this measure is updated.
;---------------------UpdateDivider=1
_________________________________________________________
UpdateDivider=-1
----------------------------------------------------------------------------------
DynamicVariables=1
[MeasureCreated_at1]
Measure=WebParser
URL=[InfoGM]
StringIndex=2
;RegExpSubstitute=1
DynamicVariables=1
_________________________________________________________
OnChangeAction=[!UpdateMeasure MeasureCurrentTime]
---------------------------------------------------------------------------------
[MeasureCreated_at2]
Measure=WebParser
URL=[InfoGM]
StringIndex=4
;RegExpSubstitute=1
DynamicVariables=1
OnChangeAction=[!UpdateMeasure MeasureCurrentTime]
[MeasureCreated_at3]
Measure=WebParser
URL=[InfoGM]
StringIndex=6
;RegExpSubstitute=1
DynamicVariables=1
OnChangeAction=[!UpdateMeasure MeasureCurrentTime]
Last edited by death.crafter on June 2nd, 2021, 11:39 am, edited 1 time in total.
Just a minor aside, you actually don't have to have a Formula option on a Calc measure if the intent is just to use the measure as a "host" for one or more IfConditions.
jsmorley wrote: ↑June 2nd, 2021, 11:20 am
Just a minor aside, you actually don't have to have a Formula option on a Calc measure if the intent is just to use the measure as a "host" for one or more IfConditions.
death.crafter wrote: ↑June 2nd, 2021, 11:58 am
Are you getting the values from webparser correct?
Yes, the output parameters work, I reviewed and saw that #U# does not match the required number of characters.
Thank you, I will fasten this to my skin