I need some help creating a xml template

Hello everyone,

I´m currently trying to create my own template for a vibration animation. In general the animation should loop based on the rpm speed of the rotor. The simvar needed for that would be (A:ROTOR ROTATION ANGLE:1, degrees).
In addition I would like to disable the animation in certain rpm percentage ranges. The related simvar is (A:ROTOR RPM:1, rpm).

Variant 1: The animation should only work from 30 to 70 percent rpm and above 100 percent.

Variant 2: The animation should work from 70 to 100 percent rpm.

Maybe someone with the necessary exprience can help me to create those two templates.