rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: MelkiyProd. on March 18, 2014, 05:01:10 PM

Title: exists
Post by: MelkiyProd. on March 18, 2014, 05:01:10 PM
Code: [Select]
{.if|{.postvar|name.}={.exists|template/users/{.postvar|name.}.}
why doesn't work? It's works like {.if|{.{.postvar|name.}={.postvar|name.}, but necessary to check folder path.
Title: Re: exists
Post by: Mars on March 19, 2014, 07:55:09 PM
{.if|{.postvar|name.}={.exists|template/users/{.postvar|name.}.}
the logic of "if" is incoherent, compare text to a boolean value can not function, the syntax is completely revise

you writesomething as:  IF (string=boolean) wihout then (and) else end

would not you rather that you are looking to get
to verify if is defined name and exists folder with same name?
{.if|{.and|{.postvar|name.}|{.exists|template/users/{.postvar|name.}.}|  true |  false /if.}
Title: Re: exists
Post by: MelkiyProd. on March 20, 2014, 08:38:05 AM
{.if|{.postvar|name.}={.exists|template/users/{.postvar|name.}.}
the logic of "if" is incoherent, compare text to a boolean value can not function, the syntax is completely revise

you writesomething as:  IF (string=boolean) wihout then (and) else end

would not you rather that you are looking to get
to verify if is defined name and exists folder with same name?
{.if|{.and|{.postvar|name.}|{.exists|template/users/{.postvar|name.}.}|  true |  false /if.}


Yes, thank you very much!!!  :) It works as I wanted  ;)