Yup, conventional game AI is just bunch of ifs :)
isnt so different than
if rule(programmer_params): ...
Code format for a 1 line like this example is nowhere close to # of lines in other files, the networking delays, and also can't be done client-side with current hardware to the scale needed for multiple entities all weighted uniquely in the current 2023 "AI" tools.