Hi
I'm trying to find ways to reduce the steps of some big templates and thus making it smaller/faster.
One way I have found is replacing the 3 counter macros (init, get value, increase) by a single java macro:
Fielddata is the java macro itself.
Though, I'm still looking for other ways so if anybody knows some, you may always share it here.
I'm trying to find ways to reduce the steps of some big templates and thus making it smaller/faster.
One way I have found is replacing the 3 counter macros (init, get value, increase) by a single java macro:
Код:
{-JS.Execute-|-
var x="{-FieldData.FieldData-|-●9●0●6●9●2●0●-|-≡2≡0≡8≡4≡5≡6≡1≡7≡6≡8≡-}";
if(x=="")
0;
else
{-FieldData.FieldData-|-●9●0●6●9●2●0●-|-≡2≡0≡8≡4≡5≡6≡1≡7≡6≡8≡-}+1;
-}
Though, I'm still looking for other ways so if anybody knows some, you may always share it here.