I have a google form that when the user submits it will trigger my function to run which is creating a summary of what they submitted as a Google Doc. I know it can automaticall
Google Apps Script is javascript, you can use all the string methods...
var grade = itemResponse.getResponse(); if(grade.indexOf("9th")>-1){do something }
You can find doc on many sites, this one for example.