Comparing 3 numbers

Hello guys. Need some help.

Here is my problem. The user will input 3 numbers in 3 boxes. What i need is to check if the number in box number 2 is bigger than number 1 and also if the number in the box3 is bigger than the number in box number 2. If these are true then a msg will appearing.

box2 > box1 and box3 >box2. I am using windows version but i am really lost.

Anybody can help me. Thank you in advance.

Comments

  • kieron13kieron13 Member Posts: 5
    Excellent. Thank you very much.
  • kieron13kieron13 Member Posts: 5
    Just a quick question. When i have integer value can it be empty or always will start from 0?
  • TheGabfatherTheGabfather Member Posts: 633
    edited February 2014
    No Attribute except text can be set to empty or null.
    You can check by creating a new integer Attribute, changing the value to empty then hitting enter. It should revert back to 0.0 (which is 0, don't mind the decimal point if it's an integer).
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    All attributes have a default starting value. Unless you change it manually, that value is zero. If you don't want an attribute to start at 0, you could change it to something that will never naturally occur in your game, such as a very large number or a negative number and use that as an "empty" value, if that makes sense.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • kieron13kieron13 Member Posts: 5
    thanks
Sign In or Register to comment.