![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between if [[ ]] and if [ ] statements | rony_daniel | Shell Programming and Scripting | 1 | 09-19-2007 06:11 AM |
| Please help on IF statements. | filthymonk | Shell Programming and Scripting | 4 | 07-18-2007 05:59 AM |
| Else in If Statements | chapmana | UNIX for Dummies Questions & Answers | 8 | 11-30-2006 08:07 AM |
| or statements? | Blip | Shell Programming and Scripting | 1 | 01-19-2004 04:08 PM |
| if statements | lilas | UNIX for Dummies Questions & Answers | 2 | 03-22-2001 11:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
This is for a program I have to do to calculate the day of the week.
I need to write an if statement that will do the following: Code:
if day is 29 and year is odd, don't calculate day Code:
if ( day == 29 && year == ??? ) |
|
||||
|
This should do it:
Code:
if ( day == 29 && year % 2 ) |
![]() |
| Bookmarks |
| Tags |
| csh, if statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|