CARBONZIT,
There are names like R1, R2, R3. In this case S1, S2, S3.
For resistors you can set R=1k, or you can set R1=Rx, R2=Rx and then declare Rx=1k. This is done when you want to have 100 resistors with the same value then change all the values to a slightly different number to see what happens.
For your switch S1 it can have a value of SW1.
.model SW1 SW(Ron=10 Roff=10Meg Vt=1.1 Vh=0.1).
So all switches that have a value of SW1 will act alike, and have the values of;SWITCH Ron=10 Roff=10Meg Vt=1.1 Vh=0.1
If you are using only one switch this probably does not make sence. If you are using 20 switches and many different types then it works very well. See my example.
See help on voltage switch!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You want a on/off switch. I want a opamp, voltage comparitor, amp with gain, Buffer, inverter, with/without Hysteresis, current limit, delay, etc.
You can make a oscillator with a Vswitch + cap + resistor.
One of fun parts of spice is you can make up parts that do not exist. Voltage controlled current source with time. I can make a part that is a formula having many inputs, time, frequency, voltage, temp., current, etc and outputs almost anything.