| Function: =b | Top | Globals Index | Next |
|
syntax: =b <str-val> Return empty block if unset value found |
| Function: =n | Top | Globals Index | Back | Next |
|
syntax: =n <str-val> Return none if unset value found |
| Function: =s | Top | Globals Index | Back | Next |
|
syntax: =s <str-val> Return empty string if unset value found |
| Function: ??? | Top | Globals Index | Back | Next |
|
syntax: ??? <any-type> Prints information about words and values. Handles multiple docstrings. |
| Function: abort | Top | Globals Index | Back | Next |
|
syntax: abort <block-str-msg> Abort process and shut down |
| Function: aligned? | Top | Globals Index | Back | Next |
|
syntax: aligned? <series-or-int> <divisor> description: test to see if an integer or the length of a series is evenly divisible by a whole number. |
| Function: all-lowercase | Top | Globals Index | Back | Next |
|
syntax: all-lowercase <string> Return true if string is all lower case |
| Function: all-uppercase | Top | Globals Index | Back | Next |
|
syntax: all-uppercase <string> Return true if string is all upper case |
| Function: between | Top | Globals Index | Back | Next |
|
syntax: between <low-number> <val-number> <high-number> Description: Is val between low and high? |
| Function: data? | Top | Globals Index | Back | Next |
|
syntax: data? v Tests data in a series value. Returns false for empty series. |
| Function: dbg | Top | Globals Index | Back | Next |
|
syntax: dbg <any-type> Debugs a word, includes spelling. If an object, checks for a _data_ member and displays it. example:: a: 4 || dbg a => "a: 4" |
| Function: err-handler | Top | Globals Index | Back | Next |
|
syntax: err-handler <error> Machine - sensitive error handler |
| Function: err-report | Top | Globals Index | Back | Next |
|
syntax: err-report <err> simple error formating interface |
| Function: error-string | Top | Globals Index | Back | Next |
|
syntax: error-string <error-object> Compose a string representation of error object. note: If you do not fully understand the magic of setting arg2 and arg3 it would be useful to probe system/error. The 3 arguments are used to extract a human-readable message from the system/error object |
| Function: export | Top | Globals Index | Back | Next |
|
syntax: export <block-of-words> Export local words in the global context. refinement: /to Export to this object instead of SYSTEM/WORDS |
| Function: fetch | Top | Globals Index | Back | Next |
|
syntax: fetch <any-type> Description: safe data retrieval. Handles any value. Refinements: with /seed, argument is the default value /deep - if block, reduce /same - if unset, return arg /default <any-default-value> - If evaluates to false return default value. |
| Function: form-error | Top | Globals Index | Back | Next |
|
syntax: form-error <error-object> <markup-block> description: Compose a message representation of an error object. args: markup Use to make more readable. markup 1 & 4 wrap the message. markup 2 & 3 for near and where attributes respectively. Note: All four elements of markup are optional Note: Send email of error refinement: /user add footnote |
| Function: global? | Top | Globals Index | Back | Next |
|
syntax: global? <word> Is word global? |
| Function: has-data? | Top | Globals Index | Back | Next |
|
syntax: has-data? <any-type> return: False if empty series, string with only whitespace, none or false |
| Function: int-block | Top | Globals Index | Back | Next |
|
syntax: int-block <block> Return true if all members are integers |
| Function: int-string? | Top | Globals Index | Back | Next |
|
syntax: int-string? <str-str> Return: Integer representation of string, or false |
| Function: invalid-argument | Top | Globals Index | Back | Next |
|
syntax: invalid-argument <arg> Throw an "Invalid argument" error. |
| Function: is-decimal | Top | Globals Index | Back | Next |
|
syntax: is-decimal <str-str> <int-degrees-of-precision> description: Test if string is decimal and correct decimal places. |
| Function: is-email? | Top | Globals Index | Back | Next |
|
syntax: is-email? <string> Is string a legitimate email address? |
| Function: is-integer | Top | Globals Index | Back | Next |
|
syntax: is-integer <str-str> description: Test if value can be converted to an integer |
| Function: is-whitespace | Top | Globals Index | Back | Next |
|
syntax: is-whitespace <char> |
| Function: len-eq | Top | Globals Index | Back | Next |
|
syntax: len-eq <str-where> <s1-series> <s2-series> Description: Raise an exception if S1 and S2 are not equal in length. |
| Function: longest | Top | Globals Index | Back | Next |
|
syntax: longest <block> Returns length of longest member of a series Note:: Non-series members are ignored |
| Function: many? | Top | Globals Index | Back | Next |
|
syntax: many? <number> True if number is greater than 1 |
| Function: mrk | Top | Globals Index | Back | Next |
|
syntax: mrk refinement <str-msg> Simple but effective debugging for CGI. |
| Function: mrks | Top | Globals Index | Back | Next |
|
syntax: mrks <str-s> Simple but effective debugging for CGI. |
| Function: mysql-legal | Top | Globals Index | Back | Next |
|
syntax: mysql-legal <str-str> description: Convert a string to a legal mysql identifier. refinement: (upper) Words are capitalized, else join words with underscores refinement: (nodefault) Don't return the default value |
| Function: no-data? | Top | Globals Index | Back | Next |
|
syntax: no-data? v Returns true of v has no data. |
| Function: not-found? | Top | Globals Index | Back | Next |
|
syntax: not-found? <val> Is val equal to the not-found constant? |
| Function: not-whitespace | Top | Globals Index | Back | Next |
|
syntax: not-whitespace <char> |
| Function: one? | Top | Globals Index | Back | Next |
|
syntax: one? <number> True if number is equal to 1 |
| Function: pass | Top | Globals Index | Back | Next |
|
syntax: pass Do nothing. Handy for readability. |
| Function: pos? | Top | Globals Index | Back | Next |
|
syntax: pos? <series-target> <any-type-v> description: Return index of location if found or none |
| Function: print-error | Top | Globals Index | Back | Next |
|
syntax: print-error <obj-error> Description: Print out a disarmed and formatted error message. Example: except: either WorkStation[[print-error/simple disarm err ]][[err-handler err]] if error? set/any (quote err) try application except (remember to quote err) Refinement: /at location extra information Refinement: /only Treat as if console application Refinement: /simple Don't format for HTML |
| Function: raise | Top | Globals Index | Back | Next |
|
syntax: raise <str-block-message> User-raised error Refinement: (/at) Location, or anything extra |
| Function: safe-reduce | Top | Globals Index | Back | Next |
|
syntax: safe-reduce <block> Reduce block, leaving unset values refinement: /deep - Reduce nested blocks |
| Function: setd | Top | Globals Index | Back | Next |
|
syntax: setd <any-d> <any-default> Description: check for unset values and return default if found. |
| Function: setq | Top | Globals Index | Back | Next |
|
syntax: setq <word> <any-type> description: Reset an existing word with a value to a new value. Best used with globals inside of a def block. No tick is needed. |
| Function: shortest | Top | Globals Index | Back | Next |
|
syntax: shortest <block> Returns shortest length of members of a block. |
| Function: simple-error | Top | Globals Index | Back | Next |
|
syntax: simple-error <str-blk-msg> Provide error message and quit refinement: /continue Don't quit /with <color-block> - custom fg and bg colors refinement: /finish - shut down specific resources |
| Function: toss | Top | Globals Index | Back | Next |
|
syntax: toss <str-block-msg> Compose and throw a user error. |
| Function: uppercase? | Top | Globals Index | Back | Next |
|
syntax: uppercase? <string> Is string all upper case? |
| Function: wholenumber | Top | Globals Index | Back | Next |
|
syntax: wholenumber <str-or-int-val> Does val translate to a whole number |
| Function: within | Top | Globals Index | Back |
|
syntax: within <low-number> <val-number> <high-number> Description: Is val equal to or greater than low and and less than or equal to high? |