Difference between revisions of "SameSex"

From UODemo Wiki
Jump to: navigation, search
(Created page with 'integer '''sameSex'''(object ''MobileA'', object ''MobileB'');<br> The ''sameSex'' function will return 1 if both mobiles have the same 'sex value', see getSex. Otherwise 0 …')
(No difference)

Revision as of 11:11, 13 September 2010

integer sameSex(object MobileA, object MobileB);

The sameSex function will return 1 if both mobiles have the same 'sex value', see getSex. Otherwise 0 is returned.

Because a 'sex value' of 0 is used for both male mobiles and invalid mobiles, you should use the isMobile function to validate the objects first to avoid unwanted results!


Return to the Command List.