I’m just gonna need help with a block that locates if a character (letter or special character) is located in any form of typing like for example, if you’re trying to make a IRL simulator, you would make a starting amount of money for the simulator’s character (person, etc.), and if there is any sign of a negative symbol ( - ), the game’s over and you have to start over. Here’s how it looks:
So do you need help with detecting when a user types in a certain character, or if the character is detected in a string / text?
If you want to detect when a certain characters is typed, then just use or . If the key isn’t there, use to type in the character you want to detect and drag it into the input of .
If you need help with detecting if a certain character is in a string, then you can use this block:
Also I think this would go in the category “Help with Snap!: Snap! editor”
Apparently, the library this block is from (strings, multiline inputs) has a bug. The extension function used won’t take a number, only a string (text):
Interesting. It can detect when both the Shift and Ctrl key are being pressed. If you press Shift Ctrl, it will report “shift Control”. But if you press Ctrl Shift, it will report “ctrl shift Shift”.
In fact, it can pretty much detect whenever you Ctrl click or Shift click any key.