Page 1 of 1

Template issue - is there a workaround? **solved**

Posted: Mon Jan 07, 2019 1:59 am
by ConligWX
I am trying to setup a template value that gives the max wind with time and am/pm like so:

Code: Select all

[wind0wind-dmaxtime=apm.ij]:[wind0wind-dmaxtime=apm.kl] [wind0wind-dmaxtime=apm.op]
if the max wind time was before 10 the value will be 01 02 03 etc.

if there anyway to truncate the 0 from this time value, for example:

9:34 am instead of 09:34 am ?

Re: Template issue - is there a workaround?

Posted: Wed Jan 09, 2019 2:46 pm
by admin
two ways:

Code: Select all

#if#[wind0wind-dmaxtime=apm.i:0] == 0#then#[wind0wind-dmaxtime=apm.i:0]#else#[wind0wind-dmaxtime=apm.ij]#fi:[wind0wind-dmaxtime=apm.kl] [wind0wind-dmaxtime=apm.op]

Code: Select all

{* [wind0wind-dmaxtime=apm.ij:0] *0}:[wind0wind-dmaxtime=apm.kl] [wind0wind-dmaxtime=apm.op]

Re: Template issue - is there a workaround?

Posted: Wed Jan 09, 2019 6:05 pm
by ConligWX
Thanks for the tip.