If Contains - HyperPad Hub
Logo
Screenshot from If Contains
If Contains

If Contains

Created March 2017
27 plays

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

Screenshot 1
Screenshot 2

Awards

Level-Up

Level-Up

You released your first project update! Every improvement makes your game stronger.

First Play

First Play

Your project earned its first play! Someone discovered what you made—keep sharing and building.

Comments

Kamdroid
Kamdroid3/31/2017

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}

Kamdroid
Kamdroid3/30/2017

@TutorialDoctor what do you mean by regular expressions?

Rather than an "if contains" behavior, regular expressions would be nice. Good idea of a project.

GameCRAZY
GameCRAZY3/26/2017

I agree as well!