How do I have two different servver.show print next to each other at the same time if each is

from a function
I have many functions that use the function checkpin5() below i am trying to get the internal of the function to print aside the server.show in the first function. so i want the “power for one cup” “On” or “power for one cup” “Off” to show in the planner how do i do this
class power_cup extends InputPort
{
name = "Power for one cup"
type = “number”

function set(value)
{
server.show(“Power for one cup”);
imp.wakeup(2,
function() {
hardware.pin8.configure(DIGITAL_OUT);
hardware.pin8.write(1);
imp.wakeup(2,
function() {
hardware.pin8.write(0);
checkpin5()
imp.wakeup(20,
function() {
hardware.pin7.configure(DIGITAL_OUT);
hardware.pin7.write(1);
imp.wakeup(2, function() {
hardware.pin7.write(0);
checkpin5()
})
})
})
});
}
}

function checkpin5()
{
local v = (hardware.pin5.read() / 65535) * hardware.voltage();
server.log(format(“pin5 is at %.2f volts”, v));
if (v > 1.0)
server.show(“On”);
else
server.show(“Off”);

}
checkpin5();

function checkcuppin5()
{
local v = (hardware.pin5.read() / 65535) * hardware.voltage();
server.log(format(“pin5 is at %.2f volts”, v,power_cup));
if (v > 1.0)
server.show(“Making one cup”);
else
server.show(“Not making one cup”);

}

Okay thank you, In bold is what I changed but I am not sure If it will work.
How do I check If code will work If my imp is not connected?
By the way this in not all of my code
`
class power_cup extends InputPort
{
name = "Power for one cup"
type = “number”

function set(value)
{
server.show(“Power for one cup”);
imp.wakeup(2,
function() {
hardware.pin8.configure(DIGITAL_OUT);
hardware.pin8.write(1);
imp.wakeup(2,
function() {
hardware.pin8.write(0);
server.show(“One cup requested” +" “+ checkpin5());
imp.wakeup(20,
function() {
hardware.pin7.configure(DIGITAL_OUT);
hardware.pin7.write(1);
imp.wakeup(2, function() {
hardware.pin7.write(0);
server.show(“One cup requested” +” "+ checkpin5());
})
})
})
});
}
}

function checkpin5()
{
local v = (hardware.pin5.read() / 65535) * hardware.voltage();
server.log(format(“pin5 is at %.2f volts”, v));
if (v > 1.0)
return “Machine status: brewing”;
else
return “Machine status: not brewing”;
}

imp.configure(“CoffeeControlCenter”, [power_input(), power_off(), power_cup()], []);`

You can’t do this. Server.show shows a single string and the latest one overwrites the previous one.

If you want to show more than one thing, then you need to store both items, so that anywhere you want to update the show, you can form a new string from the latest items and show that.

i know in python you can concatenate string can you do that in squirrel?
looking at the squirrel website you i don’t see anything.
so what I was saying since the function prints something can you concatenate it with the server.show(" ") and server.show(“making on cup”)

Yes. .you can concatenate with the ‘+’:

local string2 = "some message"; server.show("string 1 " + string2 + " some other string");