Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!ai-lab!rice-chex!bson From: bson@rice-chex.ai.mit.edu (Jan Brittenson) Newsgroups: comp.sys.handhelds Subject: Re: Progamming Flags Message-ID: <15533@life.ai.mit.edu> Date: 2 May 91 18:45:25 GMT References: <9105021444.AA14927@enuxha.eas.asu.edu> Sender: news@ai.mit.edu Organization: nil Lines: 20 In a posting of [2 May 91 14:44:20 GMT] salvato@enuxha.eas.asu.edu (Vincent H. Salvato) writes: > I want to write a program that if symbolic is on it automaticaly turns > it off and says "SYM OFF" and in turn if symbolic is already off I > want it to turn it on and say "SYM ON". One possible solution (67.5 bytes): << "SYM O" 1 FS?C "FF" << 1 SF "N" >> IFTE + 1 DISP 1 FREEZE >> Of course, if you compromise your demands, it can be reduced: << 1 FS?C "NUM" << 1 SF "SYM" >> IFTE 1 DISP 1 FREEZE >> The latter will say "NUM" or "SYM". It's 61 bytes. -- Jan Brittenson bson@ai.mit.edu