public string TryEvaluate() { //Debug.Log("TryEvaluate " + label + " typecast = " + typecastTarget); if (!IsConnectedAndEnabled()) { if (!string.IsNullOrEmpty(unconnectedEvaluationValue)) { return(unconnectedEvaluationValue); } } if (!CanEvaluate()) { return(null); } if (typecastTarget == 0) { if (conType == ConType.cInput) { return(inputCon.Evaluate()); } else { return(Evaluate()); } } else { //Debug.Log("Trying to evaluate node " + this.label + " on node " + this.node.nodeName); return(TryEvaluateAs(typecastTarget)); } }