Welcome Forums Requests Comparison Of Two Number Variables Is Not Possible

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31818
    Marby
    Moderator

    I would like to be able to compare different number variables with each other. The following screenplay only brings the messages “a is not 2” and “That’s all!”. The editor says “Actions are OK!”, but the comparison code will not be executed properly. Why not?

    hero number of "a" becomes 3
    hero number of "b" becomes 2
    
    if hero number of "a" > hero number of "b"
        hero says "Greather than"
    if hero number of "a" < hero number of "b"
        hero says "Less than"
    if hero number of "a" = hero number of "b"
        hero says "Equal to"
    
    if hero number of "a" = 2
        hero says "a is 2"
    else
        hero says "a is not 2"
    
    hero says "That's all!"
    
    #32144
    deWiTTERS
    Keymaster
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Requests’ is closed to new topics and replies.