19 lines
954 B
Plaintext
19 lines
954 B
Plaintext
\b;Instruction \c;receive\n;
|
|
Syntax:
|
|
\s;\c;receive ( name, power );\n;
|
|
|
|
Retrieves an information from the closest \l;information exchange post\u object\exchange;.
|
|
|
|
\t;name: \c;string\n;
|
|
Name of the information required from the exchange post. This name is a string: it must be written in quotation marks "¦".
|
|
|
|
\t;power: \c;float\n;
|
|
Power of the receiver, which corresponds to maximal distance between the receiver and the exchange post. If the distance is longer, no information is received. Default value is 10 metres.
|
|
|
|
\t;Return value: \c;\l;float\u cbot\float;\n;
|
|
Value of the retrieved information. If no exchange post is close enough, or if the name of the requested information does not exist in the exchange post, the value \c;nan\n; is returned.
|
|
|
|
\t;See also
|
|
\c;\l;send\u cbot\send;\n;, \c;\l;testinfo\u cbot\testinfo;\n; and \c;\l;deleteinfo\u cbot\delinfo;\n;.
|
|
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
|