KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to do something like this with a boolean: /* ... other stuff */ loggedDocument = false for line in inFile: if (line.find( /*something*/ ) != -1): println("FOUND DOCUMENT: %s" % line) loggedDocument = true if (loggedDocument == false): /* do something else */ But I keep getting invalid syntax errors. I googled but couldn't find a simple boolean example, any ideas?
Tags (comma-separated)
Save Edits
Cancel