Changing a glyph on a certain weight

How to change a glyph on a certain weight? I want to make $ glyph change to a second variation without the line inside the S to make it more legible on heavier weights.

thanks in advance :blush:

Hi, look at this >>
https://glyphsapp.com/tutorials/alternating-glyph-shapes

amazing! thank you!