interface.js: condition reordering