bool.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="bool" category="Built-In Types" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Boolean built-in type
  5. </brief_description>
  6. <description>
  7. Boolean built-in type.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="bool">
  15. <return type="bool">
  16. </return>
  17. <argument index="0" name="from" type="int">
  18. </argument>
  19. <description>
  20. Cast an [int] value to a boolean value, this method will return true if called with an integer value different to 0 and false in other case.
  21. </description>
  22. </method>
  23. <method name="bool">
  24. <return type="bool">
  25. </return>
  26. <argument index="0" name="from" type="float">
  27. </argument>
  28. <description>
  29. Cast a [float] value to a boolean value, this method will return true if called with a floating point value different to 0 and false in other case.
  30. </description>
  31. </method>
  32. <method name="bool">
  33. <return type="bool">
  34. </return>
  35. <argument index="0" name="from" type="String">
  36. </argument>
  37. <description>
  38. Cast a [String] value to a boolean value, this method will return true if called with a non empty string and false in other case. Examples: [code]bool('False')[/code] returns true, [code]bool('')[/code]. returns false
  39. </description>
  40. </method>
  41. </methods>
  42. <constants>
  43. </constants>
  44. </class>