Typescript Get Function Matlab Syntax For Logical If Statement