- Input field: Presents one or more words defined by the system nerve.
- Output field: Applies the system nerve and returns the result.
Input-side n
In input, n element works like a star (*) but it only represents the words that the given system nerve returns a value other than <null/>
.
<n>nerve</n>
Parameters
nerve
The name of nerve to apply.
Examples
Example 1. Represents a string defined by system nerve
- Nerve: color
- red
- blue
- green
- Cell
-
I like <n>color</n>
-
<s/> is a beautiful color.
- I like blue.
- Blue is a beautiful color.
Output-side n
In output, n element applies the given system nerve to the expression and returns the result.
<n>nerve(expression)</n>
Parameters
nerve
The name of nerve to apply.
expression
The BrainXML expression is firstly calculated, the expression result is then provided to nerve as an argument, and finally the nerve's results are return to output field.
If the nerve doesn't define how to process the given text, the text is returned as is.
Examples
Example 1. Return country by city
- Nerve: city2country
- new york
- USA
- Cell
- I am from *
-
Glad to meet someone form <n>city2country(<s/>)</n>!
- 1
- I am from New York.
- Glad to meet someone from USA!
- 2
- I am from Austin
- Glad to meet someone from Austin!
Notes
- Element n works with system nerves, which you can use but cannot modify.
- Element nerve works with custom nerves, which are totally under your control.