[jboss-dev-forums] [JBoss AS 7 Development] - if-else control flow

Mustaq Pradhan do-not-reply at jboss.com
Wed Sep 12 00:57:59 EDT 2012


Mustaq Pradhan [https://community.jboss.org/people/mustaq.pradhan] commented on the document

"if-else control flow"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-18764#comment-10671

--------------------------------------------------
I am trying following from a script:

{code}
/interfaces=/interface=management:read-attribute(name=nic)
/if (result.value == "undefined") of /interfaces=/interface=management:read-attribute(name=nic)
    /socket-binding-group=standard-sockets/socket-binding=https:read-attribute(name=port)
/end-if
{code}

Getting following error:

{code}
[jboss at uc-j00-01 cli]$ cli --file=init-setup.cli
{
    "outcome" => "success",
    "result" => undefined
}
'if (result.value' is not a valid node type name.
{code}

Help, please.
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120912/a58cc619/attachment.html 


More information about the jboss-dev-forums mailing list