Bitwise but confused

Hello all,
First Post!
I'm fairly new to the Arduino world and don't have a lot of c programing experience. I'm used to working with PLC's and Industrial automation stuff.

I've Been trying to write some code where I can get 4 inputs from PORTB And then take the HEX or the DECIMAL value which will tell the program a specific write to an LCD. I've got all of the LCD stuff working and can do pinMode and such but being from the PLC world i would like to just use a word (byte)
I can't find an example anywhere on how to use this and the other postings that might be close aren't and don't show any proper setup or loop syntax.
Any Help Will be appreciated
Thanx.

Don't know why you don't want to use the pin abstraction but you can read the whole port if you want:-
http://www.arduino.cc/playground/Learning/PortManipulation

"Don't know why you don't want to use the pin abstraction but you can read the whole port if you want"

Mostly to try it out the portb.

But my main concern is having the 4 inputs give me a word to set the print to the LCD. I'm doing this because I only have 4 inputs but 10 different things to display on the LCD
Such as:
Binary DEC HEX
B00111 = 7 0x07
B00101 = 5 0x05
And such
if (byte)= 7 then lcd.print("that");
if (byte) = 5 then lcd.print("this");
Just an example.

Thanks.

Does anybody have any Ideas on how to do this or IF it can be done??
I haven's been able to figure it out yet.

Thanks.

I've Been trying to write some code where I can get 4 inputs from PORTB And then take the HEX or the DECIMAL value which will tell the program a specific write to an LCD.

There are a number of ways to implement this, but they all end up as a form of input number processing (similar to converting "123" to 123 or 0x123)

How about:

#define pin8 3  // pin with binary weight of 8
#define pin4 6  // pin with binary weight of 4
#define pin2 7  // pin with binary weight of 2
#define pin1 9  // pin with binary weight of 1

byte readPinsAsInt()
{
   byte result = 0;
   if (digitalRead(pin8)) result += 8;
   if (digitalRead(pin4)) result += 4;
   if (digitalRead(pin2)) result += 2;
   if (digitalRead(pin1)) result += 1;
   return(result);
}

ok nice, so then I can set the result in a var and is that what I read to know what to print to the LCD?
Thanks westfw