Logic Block-Examples
1.if:
If the light level is <100 this code sets the brightness to 255 when the button A is pressed:
2.If else:
This program shows a icon If sound level is greater than the number otherwise clears the screen.
3.If else if:
This program finds the compass heading and then shows a letter that means whether the micro:bit is facing north (N), south (S), east (E), or west (W).
4.1) lowerthan, greaterthan,equality:

2)lowerOreEualthan, greaterOrEqualthan,Equality:
