Strange behaviour of assign of context var with init bool value

The problem is the way you are trying to set the default value using the || operator.

If you set SetTempCFirstOn to false then the above code will return true because the left-hand side of the || is false.

If false is a valid value, then you cannot use the || trick - you have to be explicit:

var SetTempCFirstOn = context.get('SetTempCFirstOn');
if (SetTempCFirstOn === undefined) {
    SetTempCFirstOn = true
}

Please also read this post about how to share code/flows in the forum - How to share code or flow json