Calliope coding rotation angle

let RotationWinkel = 0 basic.forever(() ⇒ {

  RotationWinkel = input.rotation(Rotation.Pitch)
  if (RotationWinkel > 45) {
      basic.showIcon(IconNames.Sword)
  } else {
      basic.showIcon(IconNames.Yes)
  }

})