If we changed your if statement to `if(isExpanded=...
# tornadofx
r
If we changed your if statement to
if(isExpanded==true) this.expandedPane=fold
, I believe both syntaxes would work.