遇事想通就是善緣
If you can think straight when faced with an issue, this is regarded as good affinity.
想不通就是惡緣
On the other hand, it is regarded as negative affinity if you can't think straight.
善緣惡緣都是緣,看人怎樣去對待
Both are considered to be karmic affinities, be it good or bad. It all depends on how you deal with it.