Morning,

i am new to Openlab and therefore trying to write up a custom calculation for spike and unspike samples using the area. i found one syntax in the community where it shows average but if one of my samples doesnt have the peak then result should be 0. instead i am getting a number which makes me think that may formula is incorrect. can someone please help. thanks.