In /modules/templating/dialogs/ i defined a select-menu. Now I'm
trying to get the values an compare them with values specified by me
(like in de samples for the spacer).

<%
   String someNodeData= paragraph.getNodeData("nodeData").getString();
   if(someNodeData==0) {
     String newString= "xxx";
   }
%>

This way I'm getting the error:
Incompatile operand types String an int

Okey that's clear. But when I change the condition this way

 if(someNodeData=="0")

...nothing happens. Other way

 if(someNodeData=='0')

What's about:

if (someNodeData==null)

so you can check if you sure received data.

if you received a String it's like this:

if (someNodeData.compareTo("dein Vergleich String") == 0) -> dein Vergleich String wäre somit "0";

I hope it's correct like this ;)

| Dominik


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to