can handle single-line if/while with print contidion