Showing posts with label using ifs with an or. Show all posts
Showing posts with label using ifs with an or. Show all posts

Monday, July 17, 2017

Walkthrough on writing a complex if function

Say that from this sample data of a 538 field from video game records, you're only supposed to remove "System requirements" from the entries with a video game console:

System requirements: Nintendo 64
System requirements: Nintendo 64
System requirements: Nintendo 64; designed for N64 Rumble Pak
System requirements: PlayStation 2
System requirements: PlayStation 2
System requirements: Windows 95/98; 133MHz Pentium or faster processor; Windows 95/98; 64MB RAM; Microsoft DirectX 6.0 (included); quad speed CD-ROM drive; PCI or AGP graphics card; 4MB 3D accelerator for 3D graphics support (optional); 16-bit sound card; keyboard and mouse; joystick (optional); gamepad (optional)
System requirements: PlayStation 2
System requirements: PlayStation 2, memory card (for PS2) 94 KB
System requirements: PlayStation 2
System requirements: Nintendo 64. Designed for N64 Rumble Pak
System requirements: Nintendo Entertainment System
System requirements: Windows 98SW/ME/2000/XP; Pentium III 800 MHz or faster; 256 MB RAM; ; 2.5 GB free hard disk space; 32 MB hardware T&L compatible video card; Windows compatible sound card; DirectX version 9.0c (included) or higher;  8x or faster CD-ROM drive
System requirements: PlayStation 2, memory card (for PS2) 177 KB