What is the difference between If / Scope If nodes?

@faramawy ,

good question

#local varaible outside if
nums = IN[0]

OUT = []

for i in nums:

    if(i==2):
        b = i+2
        OUT.append(b)
    else:
        x = i +10
        OUT.append(x)