Divvarvar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
divvarvar command sets <gamevar1> to <gamevar1>/<gamevar2>. | divvarvar command sets <gamevar1> to <gamevar1>/<gamevar2>. | ||
Eduke32 will return an error warning if you try to divide a number by zero. So if you are going to divide by a gamevar that eventually returns a value of zero, you may verify if <gamevar2> equal zero. | |||
[[Category:EDuke commands]] | [[Category:EDuke commands]] | ||
[[Category:Gamevar manipulation]] | [[Category:Gamevar manipulation]] |
Revision as of 10:49, 17 January 2009
divvarvar <gamevar1> <gamevar2>
divvarvar command sets <gamevar1> to <gamevar1>/<gamevar2>.
Eduke32 will return an error warning if you try to divide a number by zero. So if you are going to divide by a gamevar that eventually returns a value of zero, you may verify if <gamevar2> equal zero.