Hello, I have some questions about semibluffing and cbetting.

I think I read in PNLHE that you should consider to bet when you have only little equity in a hand, and on the other hand be inclined to check or call when your equity is large.. How does this affect cbetting?

Example 1.
Everybody folds to the button who opens with 89s and only the BB calls.
The flop is QJ2 rainbow, giving you a gut shot straight draw. BB checks. Since you have so little equity you should bet because this is probably the only spot where you can try to win the hand.

Example 2.
Everybody folds to the button who opens with A7s and only the BB calls. The flop is T82 2-tone (includes a flush draw). Now you have the nut flush draw and a overcard to the board. Now should we be more inclined to check this flop back to see if we hit, because we have lot of equity in the hand and some showdown value with the ace alone?

(Example 1) Also how much does it change the situation if the opponent is aggressive or passive. If he is passive we should still bet in example 1, because the amount of equity we have in the hand? And if he's aggressive and more likely to bet us off our hand, should we the check behind and give up on the turn if we miss and he bets?

(Example 2) If he's is passive and propbably call our bet, should we still semibluff cbet to grow the pot if we hit and to try to get out opponent to fold. But if our opponent is aggressive should we check behind because there is a possibility that he might raise and put us in a tought spot.

Sorry for the rambling and the possible typos. I didn't have time to check it. Hope you can give me some advice for me because I'm a habitual cbetter and cbet almost every flop. Trying to cut that back and need some help.