I am trying to do something like this using boolean:
loggedDocument = false for line in inFile: if (line.find( ) != -1): println("FOUND DOCUMENT: %s" % line) loggedDocument = true if (loggedDocument == false):
But I keep getting invalid syntax errors. I googled but could not find a simple logical example, any ideas?
Robert Hume
source share