If NInteger = true, this block computes the output y as N power of the input u:
y = u ^ N
If NInteger = false, this block computes the output y as follows:
u ^ N if u > 0 y = 0 if u ≤ 0
The noEvent function prevents the negative input values from being evaluated by the power function with a non-integer exponent, thus avoiding an error.