Re: IF statements



On May 29, 10:35 am, smurray444 <smurray...@xxxxxxxxx> wrote:
Hey guys,

I have a grid, and using an IF statement, I want to trigger a series
of commands if the variable 'result' is within the grid cell
'square1'. I am able to achieve this using an IF statement for if a
value is equal to, less or greater than a given number for example,
but how would I create a statement to trigger the rest of the code if
'result' is simply present within the cell?

I am not sure I understand your question, but maybe you are looking
for a construct such as

if (x >= xlow .and. x <= xhi) then
! do something
end if


.



Relevant Pages

  • Re: IF statements
    ... of commands if the variable 'result' is within the grid cell ... 'square1'. ... is somehow different than the above test... ...
    (comp.lang.fortran)
  • IF statements
    ... I have a grid, and using an IF statement, I want to trigger a series ... of commands if the variable 'result' is within the grid cell ...
    (comp.lang.fortran)
  • Re: IF statements
    ... of commands if the variable 'result' is within the grid cell ... 'square1'. ... If_not_NaN ), neither of which holds much promise of portability, ...
    (comp.lang.fortran)
  • Re: execute w/triggers returning 0 rows
    ... Apparently the return valuefrom executing SQL in SQL Server is/are 'side effects' of certain SQL commands. ... Activating a trigger during execution of a command, where body the trigger that contains any of these commands, results in more side-effects. ... testing the triggers using their ad hoc query tool that inserting a row ...
    (perl.dbi.users)
  • Re: TIP #233: Virtualization of Tcls Sense of Time
    ... as these hooks allow us to supply our own 'OS clock' to Tcl. ... IIRC the trigger times for pending after commands are stored as ...
    (comp.lang.tcl)