Gamma> a = t ? 2 : 8;
2
Gamma> a;
2
Gamma> b = (a == 7) ? 2 : 8;
8
Gamma> b;
8
Gamma>
See the Button Functions section of the GTK Functions chapter (Tutorial One), or the Button Functions section of the Photon Functions chapter (Tutorial One) in the Cogent Tools Demo and Tutorials book for examples of this function used in context.