There are four ways in which man can be judged. One is random, not looking at all to his deeds, his verbalizations, his thoughts. This is the Hanhaga of Nature, the Hanhaga of evolution. Another Hanhaga is according to deeds and verbalizations and thoughts, both positive and negative. This is the Hanhaga of the Talmud, and the "Shulchan Aruch." These two ways are Hanhagot of Din, of Elokim.
The other two Hanhagot are of Mercy, of HaShem. They are opposite the two Hanhagot of Elokim. There is the Hanhaga of the (first) Zohar. Man is judged favorably, according to the "Shulchan Aruch." Then there is the fourth Hanhaga, of the second Zohar, the Hanhaga for the sons of HaShem, for the Tzaddik, in which man is judged according to his thoughts only. Verbalizations and deeds are deemed irrelevant, as they follow from the thoughts.