Home
Skip to main content
a technical website in support of
Link to CyberSoft.com
CyberSoft News Virus Alerts White Papers Training & Support Downloads

CyberSoft CVDL Tutorial

by Rick Perry
16 September 2001

Table of Contents

1. Introduction

2. VDL Format

3. String and Logic Examples

4. XOR and NOT

5. Concatenation and Offsets

6. White space

7. Absolute Offsets

8. Phone Numbers

9. Digits

10.Only Digits

11.| (Low-level Or)

12.Byte Expressions

13.Fuzzy Expressions

14.Repetition Expressions

15.Defining VDL Macros

16.Using VDL Macros

17.VDL Macro Examples

18.File Type Restriction Directives

19.File Type Restriction Examples

20.VDL Version Reporting

21.VFind --vdlc= Option

22.CVDL Syntax Summary

17. VDL Macro Examples

$define pf1 $pets AND $food $define pets "dog" OR "cat" $define food "fish" OR "pie" $define pf2 ($pets) AND ($food) :v1, $pf1 AND "ate" # :v2, "ate" AND $pf2 # Note that pf1 resolves to: "dog" OR "cat" AND "fish" OR "pie" which is the same as: "dog" OR ("cat" AND "fish") OR "pie" but pf2 resolves to: ("dog" OR "cat") AND ("fish" OR "pie")

As with C/C++ #define macros, parentheses may be used in the VDL macro definition or invocation to ensure that the intended result is obtained.

Listen to the Audio (Quicktime required)

Previous | Next

Back

© 2007 CyberSoft, Inc. All rights reserved.
Questions or comments? Please email the webmaster.