next up previous

12.2.11 Getting the First Field from a Multifield Value

This function returns the first field of a multifield value as a multifield value

Syntax

(first$ <multifield-expression>)

Example

CLIPS> (first$ (create$ a b c))
(a)
CLIPS> (first$ (create$))
()
CLIPS>

12.2.12 Getting All but the First Field from a Multifield Value

This function returns all but the first field of a multifield value as a multifield value.

Syntax

(rest$ <multifield-expression>)

Example

CLIPS> (rest$ (create$ a b c))
(b c)
CLIPS> (rest$ (create$))
()
CLIPS>


next up previous