ObjectType:byte
From Lavish Software Wiki
Contents |
[edit]
Description
Similar to an int, a byte is a whole number. The range of a byte is 0-255.
[edit]
Members
(none)
[edit]
Methods
- Inc: Increments this byte by 1
- Inc[formula]: Increments this byte by a given amount
- Dec: Decrements this bye by 1
- Dec[formula]: Decrements this byte by a given amount
- Set[formula]: Sets this bye to a given value
[edit]
Returns
The string representation of this number
[edit]
Examples
[edit]
Declare a byte variable
- declare Age byte "128"
[edit]
Increment a byte variable
- Age:Inc
[edit]
Decrement a byte variable
- Age:Dec
[edit]
Set a byte variable to a given value
- Age:Set[30]
[edit]
Add two byte variables
- TotalAge:Set[${Age1}+${Age2}]
- Cookies:Inc[${NewCookies}]
[edit]
Operates On
unsigned char
[edit]
