Contents
:: (Adverse) Conjunction
Provides an alternative verb to be run if the first verb fails.
(+/ % #) :: ('bad data'"_) i.8 NB. average the integers 0 to 7 inclusive
3.5
(+/ % #) :: ('bad data'"_) 'string' NB. cannot add characters this way.
bad dataWhitespace must separate verbA from ::
Otherwise J thinks the first : belongs to verbA: .
verbA:: verbB
|spelling error
| verbA:: verbB
| ^
verbA :: verbB
verbA ::verbB
(+/ % #):: ('bad data'"_) i.8
|spelling error
| (+/ % #):: ('bad data'"_) i.8
| ^
Common uses
1. Adverse can simplify opening a file or database for append access. Open :: Create name .
2. Close existing (garbage) form, or continue (without error) if no existing form is present:
wd :: 0: 'psel fm; pclose'
See Also
Zero-colon (0:)
Entry in the J Dictionary for ::
