You have a few issues here. The main one is the difference between AE seeing the text input as a string vs integers. To split it by “;” it needs to be a string. To compare it to 100, the numbers need to be integers. Also, you need closing braces within your if statement, and to call for an alert with your “pass” or “fail”. For a script, it’s like this:
var thisComp = app.project.activeItem;
var a = thisComp.layer(“Text_Input”).text.sourceText.value; //look at the value of the source text
var aString = a.toString(); //convert value to string
var aArray = aString.split(‘;’);//split it
var l = aArray.length;
var cap = 100;
for (i=0; i<l; i++){<=”” p=””></l;>
//convert the array values into integers as you cycle through them
if(parseInt(aArray[i]) >= cap) {
alert(“Fail”);
}else {
alert(“Pass”);
};
};
Expression version is below.