sending multiple values in port.write in processing

thx for the fast reply Paul. But it still isnt working. I tried your code:

port.write('1');
port.write(pwmMotorA);
port.write('2');
port.write(pwmMotorB);

by sending my variables one by one.To slow reaction on the arduino.The first line port.write('1') is actually a variabele i use to detect in arduino in which mode the motor is in(like forward/back/stop). Am considering is using seperators like i read somewhere. ie a

port.write(<variabele,pwmMotorA>);

Isnt this going to send all of them as a string? Thx in advance.