[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Sat May 8 07:33:36 CDT 2010
A page in your DokuWiki was added or changed. Here are the details:
Date : 2010/05/08 07:33
User : ryo
Edit Summary: try to clarify the last parameter
@@ -788,9 +788,12 @@
Arguments:
* ''String'': key value
* ''String'': value to associate to the key
- * ''Number'' (optional, defaults to 0): 0 to only update the key and not insert it, non zero to add it anyway.
+ * ''Number'' (optional, defaults to 0): if 0, the key will only be updated if it already exists in the object; if non zero, will insert it if not already existing
+
+
+ **Note**: if you're not sure whether the key exists in the object, you must use ''1'' for the last argument, else the key will not be created if it doesn't exist.
===== Map =====
Properties in **bold** are read-write, others read only.
* Difficulty: ''Number''
IP-Address : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1273321855
New Revision: http://wiki.metalforge.net/doku.php/cfpython
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list