\b;Instruction \c;flag\n;
Syntax:
\s;\c;flag ( color );\n;

Plants a \l;colored flag\u object\flag; in front of the \l;sniffer\u object\botsr;.

\t;color: \c;\l;int\u cbot\int;\n; (default value: \c;Blue\n;)
\c;Blue\n;
\c;Red\n;
\c;Green\n;
\c;Yellow\n;
\c;Violet\n;

\t;Rückgabe: \c;\l;int\u cbot\int;\n;
Normally an error stops the program. You can prevent the program from stopping on errors by using the \c;\l;errmode\u cbot\errmode;(0)\n; instruction. A value different from zero if an error occurred is then returned by \c;flag();\n;.
\c;== 0 \n;planted a flag
\c;!= 0 \n;could not plant a flag

\t;Siehe auch
Die \l;CBOT-Sprache\u cbot;, \l;Variablentypen\u cbot\type; und \l;Kategorien\u cbot\category;.
