if ($read(something.log,w,$1-) != $null) { [color:green]do commands for when it is in the log[/color] } else { [color:green]do commands when it is not in the log[/color] }