I am looking to achieve the same functionality as the code below but without using any condition statements.
HelloFunction(x){
If(x<0){
Console.log("greater");
}Else{
Console.log("smaller");
}
};
HelloFunction(1);
HelloFunction(-1);