You need to remove the equal sign before the starting curly brace
android:text="@{viewModel.isAddCase ? ``: `` + viewModel.currentStudent.age}"
Also you can use String.valueOf instead of the ``
android:text="@{viewModel.isAddCase ? ``: String.valueOf(viewModel.currentStudent.age)}"