Working with if statements in code block

Hey there,
i want to work a code block in a manner where it has to check the values of “a-100 to a+100” and return true if this range contains a value “b” and return false if this doesn’t contain value “b”.
can anyone help me out on this?

result = List.Contains((a-100)..(a+100),b);

Not sure i understand but here is a way to make a statement in codeblock