function onSample() { var box = scene.getBoxById("myBox"); if (box) { if (box.hasDataBinding("myBinding")) { shell.print("Has a binding"); } } }