0

So I got an if-else statement if the price of eth is the same as stop order sell will be = to true, but I also want to do if the price is same or bigger then limit also sell = true. If price under limit it should be false, or if the price was not stop order. So I need if price == StopOrder or price >= LimitOrder in one if statment.

1 Answer 1

1

Typical logic operators can be used in Solidity. So:

if (price == StopOrder || price == LimitOrder) { do stuff }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.