Hi
I'm trying to concatenate a string with the value of a variable with MM, but noting seems to works and I find nothing on Internet. I need your help
Here an example of what I'm trying :
// First try :
@PART[*]:HAS[#category[FuelTank],@RESOURCE[LiquidFuel],!RESOURCE[Oxidizer]]:LAST[MyModExample]
{
@description ^= :$:<br><color="green">It's an example with LiquidFuel #$/RESOURCE[LiquidFuel]/maxAmount$</color>:
}
It doesn't work. MM just don't evaluate the #$/RESOURCE[LiquidFuel]/maxAmount$ and just put it as normal text...
// This one change nothing, same result
@PART[*]:HAS[#category[FuelTank],@RESOURCE[LiquidFuel],!RESOURCE[Oxidizer]]:LAST[MyModExample]
{
@description ^= :$:<br><color="green">It's an example with LiquidFuel :
@description ^= :$:#$/RESOURCE[LiquidFuel]/maxAmount$:
@description ^= :$:</color>:
}
// This one change nothing, same result too...
@PART[*]:HAS[#category[FuelTank],@RESOURCE[LiquidFuel],!RESOURCE[Oxidizer]]:LAST[MyModExample]
{
var = #$/RESOURCE[LiquidFuel]/maxAmount$
@description ^= :$:<br><color="green">It's an example with LiquidFuel :
@description ^= :$:#$var$:
@description ^= :$:</color>:
}
// This one doesn't work, throw an error...
@PART[*]:HAS[#category[FuelTank],@RESOURCE[LiquidFuel],!RESOURCE[Oxidizer]]:LAST[MyModExample]
{
@description ^= :$:<br><color="green">It's an example with LiquidFuel :
@description += #$/RESOURCE[LiquidFuel]/maxAmount$
@description ^= :$:</color>:
}
Anyone know how to concatenate a string with a value ?
So much thanks in advance