Macro for IF {anything} exists ?

  • Автор темы Автор темы gcomm
  • Дата начала Дата начала

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Реакции
93
Баллы
28
I have an element which is returning no data - upon this case I would like to exit the branch with a logic statement (or otherwise);

How is this done guys, my eyes are burning ... ?



{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-}==true

({-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-})==false

{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-}==()

{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-}!=()
 
You can use basic javascript syntax for that:
step branch->set->logic operation

and then: '{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-} ' != ''
 
This will check if it is NOT equal

'{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-} ' != 'here you put the value'


This will check if it is EQUAL

'{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-} ' == 'here you put the value'


You can create "else if" by utilizing the branch system.
I have attchd an example file for a logic "if" and "else if" in Zennoposter.

Basically it randomizes the number 1-3, then by the result it will show you a JsAlert "this is number x".

Hope it can help you to create your own logic statements.
 

Вложения

right..... however the data is returning... null... (nothing there) nothing to compare to.
 
Gcomm, if you put in:

'{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-}'=='' will return true if your result is null. Or you could take off to the great white north and use an unsuccessful branch exit off of:
'{-FieldData.FieldData-|-●2●9●6●0●3●5●-|-≡1≡0≡2≡0≡1≡1≡0≡0≡0≡1≡-}'!=''
 
OK , bigcajones is right.
Need to reverse thinking....
btw , i want to ask the zp hava any other operation except the 'if' ?
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)