Should be a relatively straight forward question for those in the know. I am trying to do the followig, but am new to golang.
if some_logic {
} else if some_var != "" && _, exists := Dict["somestring"] {
} else {
}
The else if
block is the part of interest to me. I can't get it to compile when attempting multiple comparisons in the same logic block. Is this possible or do I need to change tact altogether?
Update:
I was able to solve functionally the problem above with the following addition;
else if _, exists := Dict["somestring"]; exists && some_var != ""