if(get(hoteldata[hotel1].hname) != null ,additem(get(hoteldata[hotel1].hname), openurl(get(hoteldata[hotel1].hurl),_blank))
);
Hi,
the if() action works a bit different at the moment:
- get(var) can't be used, it automatically uses the content of a variable,
- if a variable doesn't exists, the name of the given variable is used,
e.g. when hname is set to "xyz":
|
Quellcode
|
1
|
if(hoteldata[hotel1].hname != null , ...)
|
the if will become to:
|
Quellcode
|
1
|
if(xyz != null , ...)
|
but when hoteldata[hotel1].hname was NOT set, the if will become finally to:
|
Quellcode
|
1
|
if('hoteldata[hotel1].hname' != null , ...)
|
I know - not ideally!
the reason for that behavior was that originally there were no quotes (') for strings,
so everything could be a either a string or a variable,
I'm still thinking about to change that...
best regards,
Klaus