Can we display value in drop down based on conditions

In drop down  choice labels and choice value ..can we display value based on if conditions..

I need to display value in drop down based on the product availability..

And I have around 10 products

Can someone help with codes

  Discussion posts and replies are publicly visible