Subj : Re: console.getkeys To : Mortifis From : Digital Man Date : Wed Jul 24 2019 03:36 pm Re: Re: console.getkeys By: Mortifis to echicken on Wed Jul 24 2019 06:52 pm > > Re: console.getkeys > > By: Mortifis to All on Wed Jul 24 2019 16:39:55 > > > Mo> I have if(js.global.console) lookup = console.getkeys("HSOQ", > > Mo> lastuser); where lastuser=system.lastuser... if entering a number it > > Mo> throws a !Javascript TypeError: > > > perhaps I should run a condition check similar to if(lookup == [whatever || > ... keys are in getkeys)) before I lookup.toUpperCase ... though before it > was lookup = readln() and there was no error readln() returns either a string or undefined. undefined.toUpperCase() would also throw a JS exception. You might want to use typeof in this case to be sure your variable is a string before you start treating it like a string. digital man This Is Spinal Tap quote #29: I find lost luggage. I locate mandolin strings in the middle of Austin! Norco, CA WX: 97.2øF, 29.0% humidity, 14 mph NE wind, 0.00 inches rain/24hrs .