if only vs whilst

if only

conj
  • Used other than figuratively or idiomatically: see if, only. 

  • I wish that; signifies a wish or desire for the present or the future. 

  • I wish that; signifies a regret about an action in the past. 

  • Even if for no other reason than; only just. 

whilst

conj
  • Only if; provided that; as long as. 

  • Although; in contrast; whereas. 

  • During the whole, or until the end, of the time that; as long as, at the same time. 

  • Besides; in addition. 

  • Within, or before the end, of the time that. 

adv
  • Often preceded by the: During the time; meanwhile. 

How often have the words if only and whilst occurred in a corpus of books? (source: Google Ngram Viewer )