try creating a val outside the when like i did to ...
# tornadofx
c
try creating a val outside the when like i did to lock the value down