Code:
	PushButton var PortB.0		' Low when Pressed
	DIPSwitch var PortB.1 		' Low when ON
	LED var PortB.2

	TRISB=%00000011
	Low LED				' Start with LED OFF

Loop:	If PushButton=0 then		' Check for Button Press
		If DIPSwitch=0 then 	' Check for Options
			High LED	' Turn ON LED with Button Press...
			While PushButton=0:Wend
					' Wait here as long as Button pressed
			Low LED 	' then turn OFF LED
			else
			Toggle LED	' Toggle LED at each Button Press
			While PushButton=0:Wend
					' Wait here until finger released from Button
			endif
		endif
	Goto Loop

	End
Thanks a lot..
there are 6outputs and 8inputs available in my project. as per above explanation need 12 input ports to enable all.(6for dip and 6 for push buttons) is there any way that to create a dip switch combination, with 2 dip switches..

Regards.