<script> function test(a,b){ var c; if(a>b){ c="a > b" }else{ c="a < b" } return 'return = ' +c } alert(test(1,2)) </script>