You can now use operators in "ifPlayerHasItem" and "ifTargetHasItem".
Code (Text):
ifPlayerHasItem:
"minecraft:DIAMOND": ">= 3"
"minecraft:GOLD_INGOT": "< 2"
"myCustomItem": 9, # interpreted as ">= 9"
"anotherCustomItem": "between 3 and 4"
action: sendMessage
message: "You have at least 3 diamonds, less than 2 gold ingots, at least 9 myCustomItem, and between 3 and 4 anotherCustomItem"