next up previous

12.2.7 Creating Strings from Multifield Values

This function creates a single string from a multifield value.

Syntax

(implode$ <multifield-expression>)

Each field in <multifield-expression> in order is concatenated into a string value with a single blank separating fields. The new string is returned.

Example

CLIPS> (implode$ (create$ hammer drill screwdriver))
"hammer drill screwdriver wrench pliers saw"
CLIPS> (implode$ (create$ 1 "abc" def "ghi" 2))
"1 "abc" def "ghi" 2"
CLIPS> (implode$ (create$ "abc       def         ghi"))
"abc def ghi"
CLIPS>


next up previous