Code:
if (condition1 == somevalue && condition2 == somevalue) {
  execute some commands
}


&& means and
|| means or

Also, the command you're looking for is /writeini
For more info type /help /writeini