if ( variable = true )
{
sprite_index = spr_sprite;
image_index = 1;
}
This is the correct way and would count as 5 lines of code
Thank you for the clarification!