Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this.
-
MxMCube
- Prole
- Posts: 8
- Joined: Thu Aug 21, 2014 11:56 pm
Post
by MxMCube »
This is some code.
Code: Select all
amazingString = "Hello, this is a test. Blahblahblahblahblah"
I need an if statement that can find a 12 letter word inside amazingString, and if it does find a 12 letter word, then do something.
-
Zeliarden
- Party member
- Posts: 139
- Joined: Tue Feb 28, 2012 4:40 pm
Post
by Zeliarden »
Code: Select all
if string.find(amazingString, string.rep("%a", 12)) then
--something
end
Users browsing this forum: Ahrefs [Bot] and 5 guests