I'm writing a script tool to run multiple processes. See below:

Two problems. I was able to get the for loop to run before adding the if else statement. I need the loop to do extra steps if it is a polyline feature where as if it is a point or polygon it only needs to do the one process (Locate Features). Right now when I run it I just get invalid syntax.
Second, I am able to get this script to work if my arcpy.env.workspace = "C:\ExamplePath\" but when trying to use the Get Parameter As Text the for loop will not run. It thinks there is no data where I tell it there is.
Any help will be greatly appreciated!