• Actually getting user input can be a little tricky, so what I'd say is you get the user to type GOAL=40 rather than just 40:

    var GOAL = 30;
    print("What is your goal?");
    Bluetooth.inject("GOAL="); // writes 'GOAL=' to the input line
    // ...
    if (steps == GOAL) print("Congratulations ... ");
    
About

Avatar for Gordon @Gordon started