Node group checkbox input

Hi there, Im new to blender and i was working with nodes in the cycles materials category.

I wanted to know if there is a way of having a checkbox input for a node group.

Only sockets and values seem to be allowed. Or is there another way to implement a boolean input(0 or 1) or (tick and not ticked)

Please help me regarding this.
Thanks

There is a math node that has less than and greater than functions. There are other nodes that return Boolean values for various tests. They are in the wiki under cycles/reference.

I have already tried to use the math node.
That would still mean that i need to supply a value in the group input. What i need is a checkbox in the group input itself instead of a socket or a value input.

eg. check box to switch between an opaque or transparent shader with nothing in between.

I hope you get what you want it sounds like a nice addition if you are distributing your nodegroups to people who don’t know how to use nodes, but I personally don’t see the difference between a checkbox and a two position sliding switch.

Thanks, now i do see your point.

My nodes are working fine without the checkbox, so why bother.