Chris and Brian, Apologies, I missed that Chris asked about the Channel Math GX, and my response was for applying an expression directly to a channel. The Channel Math GX does accept strings inside the expression, and this works for me:
C0=x>0?"a":"zzz", where C0 is a string channel, which is then filled with "a" or "zzz". I did not need to pre-fill the output channel though, but maybe this is something that works in my version (8.2, yet to be released). Check with the help desk and they can confirm if it works in 8.1. Brian's suggestion should certainly work. Cheers, Ian From: [email protected] [mailto:[email protected]] On Behalf Of Ian MacLeod Sent: Thursday, March 20, 2014 10:49 PM To: Geosoft Oasis montaj and Target Subject: RE: [geonet] Manipulating String Values Hi Chris, I tried what Brian suggested by creating a string channel named "class" and filling it with something, but I could not get it to work with something like: =x>0?"a":"b" This gives me a syntax error on the strings. I expect I misunderstand Brian, or I'm doing something wrong. But if I create string channels named "aaa" and "bbb" (names are not important), then fill "aaa" with "a" and "bbb" with "b", I can use these as the result of an expression in the "class" channel like this: =x>0?aaa:bbb This gives me "a" (the contents of the "aaa" channel) wherever the "x" channel is greater than 0, and "b" wherever "x" is less than or equal to 0. I hope this helps. Cheers, Ian From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Brian Junck Sent: Thursday, March 20, 2014 8:36 PM To: Geosoft Oasis montaj and Target Subject: Re: [geonet] Manipulating String Values Chris, You can use the Channel Math GX in the normal way to populate a string channel- the catch is that the string channel has to already have data values in it. If the channel is empty, then nothing will populate. So if you create a string channel, copy the contents from another channel that is fully populated to that new string channel, then run your expression in the channel math GX, it should populate. -Brian J. On Thu, Mar 20, 2014 at 8:04 PM, Chris Vaughan <[email protected]<mailto:[email protected]>> wrote: Is there syntax in the Channel Math GX that will allow one to place a String, say a letter, in a String channel cell based upon the numerical value in another channel? Regards, Chris --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]<mailto:[email protected]>. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community -- -Brian J. --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]<mailto:[email protected]>. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]<mailto:[email protected]>. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community --- Forum archives can be accessed here: http://lyris.geosoft.com/read/?fourm=geonet You are currently subscribed to geonet as: [email protected]. To subscribe or unsubscribe from any of our forums, select the User Forum selection on the Geosoft Community page: http://www.geosoft.com/support/community
