How do i convert this from python to mql5/mql4

 
x = range (low[1],high[1])
y = (high[1]-low[1]*0.50) + low[1] // GET THE 50% OF THE CANDLE RANGE
        if y in x:
        doSomething()

  1. What is the equivalent of 'in' from python to mql5/mql4?
  2. What is the equivalent of 'range ()' from python to mql5/mql4?