fixed javafy for ask within if
condition works, but incomplete