Therefore by saying che=true is saying che is the same name as true,more like you would want instead to assign che to be the boolean true as the default value and that would be che==true
def radio2()
# make some statement about che
che="blah blah blah"
#then do whatever you want
if che == true then
radio= nrj(radio)
else
radio=radio
end
end
# then call the function
output.shoutcast( [...], radio2 )
Well to be honest its really not clear what you want to achieve and to be truthfull this maybe best asked in the liquidsoap mailing list
Good luck
It looks like you're new here. If you want to get involved, click one of these buttons!