About This Project
"If Contains" is an example project I made that features a working, custom if contains statement built for HyperPad, created due to the fact HyperPad does not yet support this type of conditional. If you need to use an if contains conditional for a project (like me), you can use this. However, processing long inputs may very shortly freeze/lag your project.
What's New
Version 1.3 • Updated 9/21/2022
- It's faster; it will finish the scan when it finds the word instead of scanning to the end.
Screenshots
Awards
First Play
Your first believer! Someone took a chance on you and played your project. Return the favour to another dev!
Level-Up
You are always working to improve your games. That's how you improve, good job!
Comments
Those are some nice suggestions 😁. Although, I don't know if it's worth making it feature-rich because I assume HyperPad will eventually add this if operation, making this obsolete. But, If I have time to update this project, it will be something I will plan to add.
You may have to google it because I don't think hyperlinks work in the hub, but regular expressions allow you to create search patterns. Instead of just being able to search a substring you could search for a particula pattern of characters. The following regular expression finds a word with 8 characters:
\w{8}
The next one finds a word with 8 characters followed by a space and then another word with 6 characters:
\w{8}\s\w{6}
A digit with 4 characters:
\d{4}
And here is a pattern that finds emails:
\w+@\w+.\w{3}
@TutorialDoctor what do you mean by regular expressions?
Rather than an "if contains" behavior, regular expressions would be nice. Good idea of a project.
I agree as well!

