added support for inline if and while statements