Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2646
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2014-11-26 23:15 -0800 |
| References | <m51ket$hre$1@news.rz.uni-karlsruhe.de> |
| Message-ID | <0a269d88-a76f-430e-8cfe-ce756f44aa3d@googlegroups.com> (permalink) |
| Subject | Re: comparing char variables |
| From | ab <ab.3942@googlemail.com> |
Hi,
you can do quick and ugly
c1="a"
c2="b"
system ("awk ' BEGIN{if ( \"".c1."\" > \"".c2."\" ) {print 1} else {print 0}}' " )
--> 0
c1="c"
system ("awk ' BEGIN{if ( \"".c1."\" > \"".c2."\" ) {print 1} else {print 0}}' " )
--> 1
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar | Unroll thread
comparing char variables Karl <mail.kfr@gmx.net> - 2014-11-25 11:11 +0100 Re: comparing char variables Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-11-25 21:32 +0100 Re: comparing char variables Gavin Buxton <gavinbuxton@gmail.com> - 2014-11-26 06:35 -0800 Re: comparing char variables RockDoctor <akarley@gmail.com> - 2014-11-26 10:28 -0800 Re: comparing char variables ab <ab.3942@googlemail.com> - 2014-11-26 23:15 -0800
csiph-web