Does FlexPDE can do FOR and IF function? Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » Does FlexPDE can do FOR and IF function? « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

shi liang (caleb_shi)
Member
Username: caleb_shi

Post Number: 10
Registered: 12-2004
Posted on Thursday, February 03, 2005 - 11:25 am:   

Hi, Sir:

does flexpde perform the samiliar function, like FOR repeat statment and IF condition statement, with C program?

for(initialization;condition;update)
statement

if(condtion)
statement
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 314
Registered: 06-2003
Posted on Thursday, February 03, 2005 - 02:15 pm:   

The FlexPDE scripting language has some syntactic features that look like conventional programming languages.

But it is NOT a procedural language like C or FORTRAN. You do not describe a sequence of operations to be performed.

The FlexPDE scripting language is a "problem description language" that describes the interdependence of variables in your system. It provides enough information about the system so that FlexPDE can decide what procedures to employ.

There is a REPEAT statement (See REPEAT in the Help Index). This is a textual repeat that replicates the contained text with modifications.

There is an IF statement (See IF in the Help Index). This is an expression evaluation IF, not a statement alternator. The syntax is the same as the C construct " a? b : c".

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration