Core library for behaviors, providing basic actions like setting numbers, comparisons, and checking results.
Core library for behaviors, providing basic actions like setting numbers, comparisons, and checking results.
A map of core action functions.
:set-field [field-name field-type value]
Sets a number to a specified field in the context.
ARGUMENTS:
:compare [field-name comparator value]
Compares a field value with a given value using a specified comparator.
ARGUMENTS:
:last-result-is-true
Checks if the last result in the context is true.
:last-result-is-not-true
Checks if the last result in the context is not true
:do-nothing
What it says. Just returns the context as is.
A map of core action functions. :set-field [field-name field-type value] Sets a number to a specified field in the context. ARGUMENTS: - field-name: The name of the field in the context where the number will be set. - field-type: The type of the field can be one of - :number - The value will be cast to a double - :string - :xml - Uses xml/parse-str to convert a string to xml - value: The value to set or a keyword e.g. :required :compare [field-name comparator value] Compares a field value with a given value using a specified comparator. ARGUMENTS: - field-name: The name of the field in the context to compare. - :all-fields as field name will comare all fields. Particulary useful for :all-fields "<>" :required to check that all required fields have been presented - comparator: The comparison operator (e.g., '>'). - value: The value to compare against. :last-result-is-true Checks if the last result in the context is true. :last-result-is-not-true Checks if the last result in the context is not true :do-nothing What it says. Just returns the context as is.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close