rejetto forum

exists

0 Members and 1 Guest are viewing this topic.

Offline MelkiyProd.

  • Occasional poster
  • *
    • Posts: 70
  • Languages: English, Русский, Українська.
    • View Profile
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.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
{.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.}


Offline MelkiyProd.

  • Occasional poster
  • *
    • Posts: 70
  • Languages: English, Русский, Українська.
    • View Profile
{.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  ;)