Code
function main()
{
  var profit = slider(3,50,0,200,"Profit",0);
  if(profit > 100)
    printf("Enough!");
  else
    printf("Not enough!");
}
The above code sample works for me.

Also, you are expecting the wrong range. Please read the description of slider() here:
https://manual.zorro-project.com/slider.htm