This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
rex41043's profile picture

Code help?

Started by rex41043, 08 May 2012 - 06:35 PM
rex41043 #1
Posted 08 May 2012 - 08:35 PM
I have been working on a program but it needs some thing so if it finds code eny where in the file like this for Eg: say("test") and maybe run it as print("") no matter what the text is can eny one help?
MysticT #2
Posted 08 May 2012 - 08:53 PM
I think something like this was asked recently, check out to see if there's an answer.
I would recommend to take a look at the lua string library. The find, match and gmatch functions might be usefull for this.