You need to sign in or sign up before continuing.

If Contains

user_avatar Made by: Kamdroid

PROJECT DESCRIPTION

Share 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.

VERSION 1.3

Last Updated: September 21, 2022

- It's faster; it will finish the scan when it finds the word instead of scanning to the end.

COMMENTS

YOU MUST BE SIGNED IN TO LEAVE A COMMENT

March 30, 2017

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

March 30, 2017

@TutorialDoctor what do you mean by regular expressions?

March 30, 2017

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}

March 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.

March 25, 2017

Really cool! Could be really useful for lots of different things!

March 25, 2017

Agree

March 26, 2017

I agree as well!