How to take two input from serial port at the same time in different variables

i am trying to read two values from the serial port one for the pin and second value for the handling of pin. i am taking the input to turn the led user wants to turn on from the input.. help me out please!

Read your thread title out loud. Does it REALLY make sense? The data coming in from the Serial Monitor comes in one character at a time. You can't possibly enter/read two values AT THE SAME TIME. Clearly, the data will be sequential.

You get to define the sequence and the delimiter between the values as strings.

This might be useful: Serial Input Basics - Programming Questions - Arduino Forum