rejetto forum

Macro-help: if %folder% != "/" then...

Guest · 3 · 6382

0 Members and 1 Guest are viewing this topic.

JellyFrog

  • Guest
Hello im too tired for thinking right now so I ask here instead:
How do a: "if %folder% != "/"  then write bla bla" looks like?

In PHP:
if(%folder% != "/") {
    echo 'bla bla';
}



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
the code you are looking for is already inside the default template ;)

{.if| {.%folder% != / .} | blablabla .}


JellyFrog

  • Guest
the code you are looking for is already inside the default template ;)

{.if| {.%folder% != / .} | blablabla .}
Oh... My bad ;D
Didn't even check out the new default template!
Thanks rejetto and keep up the good work with HFS!