Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Exists

A function used to determine if something is valid or found. For example, in Perl the exists function could be used with an array or a hash to determine if a value exists. In the below example if the example value exists in the test array the computer would print "Test exists..." to the computer screen.

print "Test exists..." if exists $test{example};

Some programming languages or script languages also use exist, which performs the same or similar function but under a different name. For example the MS-DOS if command has the ability to use an exist function. See our MS-DOS if command page if you're looking for additional information and examples of how to use the MS-DOS if command.

Also see: Exist, If statement, Programming definitions

 

Index

Category:
Dictionary

Related Pages:
E - Definitions

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope