rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: JellyFrog on December 26, 2008, 02:51:56 AM

Title: Macro-help: if %folder% != "/" then...
Post by: JellyFrog on December 26, 2008, 02:51:56 AM
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';
}

Title: Re: Macro-help: if %folder% != "/" then...
Post by: rejetto on December 27, 2008, 12:16:17 AM
the code you are looking for is already inside the default template ;)

{.if| {.%folder% != / .} | blablabla .}
Title: Re: Macro-help: if %folder% != "/" then...
Post by: JellyFrog on December 27, 2008, 02:06:36 AM
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!