JBoss Community

if-else control flow

new comment by Mustaq Pradhan View all comments on this document

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@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.