"Delete" Function

Top  Previous  Next

Delete function is used to delete one or more item nodes from an ADOM.

Syntax:

Delete(adom-scope:adom-name, [where-expression])

 

adom-scope

The scope of the ADOM. Values are "r" Request, "s" Session and "a" Application.

adom-name

The name of the ADOM.

where-expression

The expression that is tested against each item node of the ADOM. If the result is true item node is deleted. If no source specifier is given for a symbol in the where expression, the source is searched in "a:", "f:", "v:" and "i:" order.

If this parameter is omitted then all the item nodes of the given ADOM will be deleted.

 

Example:

Delete(s:cart, n:PRICE > 500)

Delete the item nodes from session ADOM "cart" whose PRICE sub-node value is greater than 500.